Hi Amit, thanks for the video! I have one doubt at 14:16 in line 34 - update AccountList. As part of code bulkification, should we add are records to a separate list and then update it with one DML call. Even here, you are updating the records after the For loop. If we have many records, how will the records hold the count_of_contatcs field value before updating.
@sfdcpanther5 жыл бұрын
You can create a new list and then add the record then update but creating a new list and adding Record into that will consume memory which no one would like to because that can be used for other variables to minimise the governor limit. About the field no of contacts the value in that will be old and after updating there will be a new updated one. I hope you are clear now
@HumanUniverse95 жыл бұрын
Nice Video...Hope..U will be uploading more on lightning components example s
@sfdcpanther5 жыл бұрын
Hi Mounika, There are already the complete list of lightning component videos available
@thevoyager199310 ай бұрын
Hi Amit great video. But solution 3 will fail in case of update
@allaboutbreastcancer20175 жыл бұрын
awesome amit sir :)
@harishlokuntla35944 жыл бұрын
Hi Amit, the list we are Updating will have duplicate accoutId if we change the the cantact Account which already have existed contact.
@ngvramanamma67753 жыл бұрын
I think we should use after delete trigger event also since after record deletion count should change
@sfdcpanther3 жыл бұрын
Yes you should use
@venky-54175 жыл бұрын
Hi amit do a one video on trigger handler class it's helpfull for all
@sfdcpanther5 жыл бұрын
Hi, Thanks for the suggestion, those kinda video are in pipeline.
@SandeepRahoolPV5 жыл бұрын
Hi Amit How are you doing, I hope you nice. Thanks allot for these videos, these are really nice for Apex learners with well explained, could you please make "@isTest" class on this trigger, I did it but getting only 56% code coverage, please do needful.
@JAYESHSHEWALE5 жыл бұрын
Hi Amit, Can you please share the scenarios for practice of trigger...
@sfdcpanther5 жыл бұрын
Hi Jayesh, You will get the list very soon. Please be patient compiling the scenarios take time.
@tirtharajghosh26803 жыл бұрын
Hi sir, I cant understand map kiu use kiya at 20.33
@sfdcpanther3 жыл бұрын
Please do share more context about your issue, I mean what is the problem or anything
@tirtharajghosh26803 жыл бұрын
At 13.02 I debug the accountlist in console, then it is showing only account id and name. Not showing No of contacts and contacts id and name. Why it is happening, sir?? and also sir why I'm filtering the data with AccountIdset???
@ritabratanagchoudhury95504 жыл бұрын
Hi Amit, I have one question. Suppose i have a account with a single contact associated to it. I change the account of that contact . Now the No_of_contact field for that account should have the value 0. Will that be possible by using the 3rd solution ????
@sfdcpanther4 жыл бұрын
Why don't you give it a try?
@nehal19472 жыл бұрын
In line no. 20 accountIdSet.add(con.AccountId); This is written. What if the object is a custom object for example my parent object is Department__c and child object is employee__c but when I am writing DepIdSet.add(e.Department__cId) It says variable doesn't exist..can you please help.
@sfdcpanther2 жыл бұрын
Department__cId is not a valid field api name
@athimathisachithanandam81944 жыл бұрын
You are my life saver. quick question: I need to write similar logic in Individual Email results(MC table) which is larger table. Will it reach governor limit as large amt of data created/edited at same time? Requirement is to rollup clicked/opened.
@chiragrathi67565 жыл бұрын
Hi Can you please let me know difference between aura components and lightning world components
@sfdcpanther5 жыл бұрын
Hi Chirag, There is a playlist for Lightning Web component and in that playlist the first video contains the difference that you are looking for
@chiragrathi67565 жыл бұрын
Thanks for your reply, For learning lightning what should i learn first aura components or lightning components
@karthikshettyan53024 жыл бұрын
Your git code is not updated with what you show on video.