Rollup Summary Trigger for Lookup Relationship

  Рет қаралды 19,502

SFDC Panther+

SFDC Panther+

Күн бұрын

Пікірлер: 33
@sabarishchandramouli8494
@sabarishchandramouli8494 5 жыл бұрын
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.
@sfdcpanther
@sfdcpanther 5 жыл бұрын
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
@HumanUniverse9
@HumanUniverse9 5 жыл бұрын
Nice Video...Hope..U will be uploading more on lightning components example s
@sfdcpanther
@sfdcpanther 5 жыл бұрын
Hi Mounika, There are already the complete list of lightning component videos available
@thevoyager1993
@thevoyager1993 10 ай бұрын
Hi Amit great video. But solution 3 will fail in case of update
@allaboutbreastcancer2017
@allaboutbreastcancer2017 5 жыл бұрын
awesome amit sir :)
@harishlokuntla3594
@harishlokuntla3594 4 жыл бұрын
Hi Amit, the list we are Updating will have duplicate accoutId if we change the the cantact Account which already have existed contact.
@ngvramanamma6775
@ngvramanamma6775 3 жыл бұрын
I think we should use after delete trigger event also since after record deletion count should change
@sfdcpanther
@sfdcpanther 3 жыл бұрын
Yes you should use
@venky-5417
@venky-5417 5 жыл бұрын
Hi amit do a one video on trigger handler class it's helpfull for all
@sfdcpanther
@sfdcpanther 5 жыл бұрын
Hi, Thanks for the suggestion, those kinda video are in pipeline.
@SandeepRahoolPV
@SandeepRahoolPV 5 жыл бұрын
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.
@JAYESHSHEWALE
@JAYESHSHEWALE 5 жыл бұрын
Hi Amit, Can you please share the scenarios for practice of trigger...
@sfdcpanther
@sfdcpanther 5 жыл бұрын
Hi Jayesh, You will get the list very soon. Please be patient compiling the scenarios take time.
@tirtharajghosh2680
@tirtharajghosh2680 3 жыл бұрын
Hi sir, I cant understand map kiu use kiya at 20.33
@sfdcpanther
@sfdcpanther 3 жыл бұрын
Please do share more context about your issue, I mean what is the problem or anything
@tirtharajghosh2680
@tirtharajghosh2680 3 жыл бұрын
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???
@ritabratanagchoudhury9550
@ritabratanagchoudhury9550 4 жыл бұрын
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 ????
@sfdcpanther
@sfdcpanther 4 жыл бұрын
Why don't you give it a try?
@nehal1947
@nehal1947 2 жыл бұрын
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.
@sfdcpanther
@sfdcpanther 2 жыл бұрын
Department__cId is not a valid field api name
@athimathisachithanandam8194
@athimathisachithanandam8194 4 жыл бұрын
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.
@chiragrathi6756
@chiragrathi6756 5 жыл бұрын
Hi Can you please let me know difference between aura components and lightning world components
@sfdcpanther
@sfdcpanther 5 жыл бұрын
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
@chiragrathi6756
@chiragrathi6756 5 жыл бұрын
Thanks for your reply, For learning lightning what should i learn first aura components or lightning components
@karthikshettyan5302
@karthikshettyan5302 4 жыл бұрын
Your git code is not updated with what you show on video.
@sfdcpanther
@sfdcpanther 4 жыл бұрын
I will upload soon
All About Trigger Handler & Helper in #Salesforce #ApexTrigger
28:17
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 17 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 43 МЛН
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,5 МЛН
Apex Triggers - 5 (Roll up Summary Trigger)
15:04
SFDC Ninja
Рет қаралды 23 М.
Israel Has The Right To Defend Itself | Stand-up Comedy by Daniel Fernandes
15:07
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 17 МЛН