Timeline for Trigger to update child with new parent id
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 24, 2020 at 18:21 | vote | accept | SK_112 | ||
Jun 24, 2020 at 15:41 | comment | added | SK_112 | I have around 10 records which are created today and those records were returned in the query mapATwithATP. I'm wondering what did i miss here. | |
Jun 24, 2020 at 15:26 | comment | added | Derek F |
@SK_112 Then you need to capture some debug logs and do some investigation and basic debugging. If, for example, the soql query feeding your soql for loop that populates mapATwithATP returns 0 rows (the number of rows returned by each query is included in the debug log at the default log levels), then you'll never execute the c.Account_Transfer__c = mapATwithATP.get(c.District_Acct_Code__c).Id; line.
|
|
Jun 24, 2020 at 15:17 | comment | added | SK_112 | It didnt work with both before insert and after insert Derek. | |
Jun 24, 2020 at 14:59 | history | answered | Derek F | CC BY-SA 4.0 |