Timeline for bulk update trigger
Current License: CC BY-SA 3.0
16 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 26, 2015 at 11:46 | history | edited | Saariko | CC BY-SA 3.0 |
added 3 characters in body
|
Jul 23, 2013 at 14:05 | vote | accept | Manoj Chandran | ||
Jul 23, 2013 at 13:20 | comment | added | S.Sharma | @ManojChandran I have posted my answer in chat | |
Jul 23, 2013 at 13:12 | comment | added | Manoj Chandran | Account relatedAccount = trigger.newmap.get(accNameMap.get(accOne.name).Id); can u explain this line | |
Jul 23, 2013 at 11:57 | comment | added | S.Sharma | @ManojChandran waiting for you on the chat. | |
Jul 23, 2013 at 10:23 | comment | added | Manoj Chandran | let us continue this discussion in chat | |
Jul 23, 2013 at 10:13 | comment | added | S.Sharma | It will work perfectly if there are no duplicate records with same name. For this , you have to do some validation to restrict user to create custom object record with same name. Also, as I have created a map for only those accounts that have being updated, so it shpuld work correct for single record also. | |
Jul 23, 2013 at 10:06 | comment | added | Manoj Chandran | It does not execute as expected....when i do bulk update it works but when i do a single record update for example if i edit a record name in account,the same name is updated to all the records in the custom object...in this case i need oly the coresponding single record oly to be updated | |
Jul 23, 2013 at 9:16 | comment | added | S.Sharma | Sorry, I just missed the map key type. I have updated it to use account's id. Can you please give it a try now ? | |
Jul 23, 2013 at 9:14 | history | edited | S.Sharma | CC BY-SA 3.0 |
added 3 characters in body
|
Jul 23, 2013 at 8:40 | comment | added | Manoj Chandran | Account relatedAccount = trigger.newmap.get(accNameMap.get(accOne.name)); this line throws error: Incompatible key type SOBJECT:Account for MAP<Id,Account> | |
Jul 23, 2013 at 8:02 | comment | added | S.Sharma | I have updated my code. Can you please confirm which line is throwing exception and what is the error message ? | |
Jul 23, 2013 at 8:01 | history | edited | S.Sharma | CC BY-SA 3.0 |
added 1 characters in body
|
Jul 23, 2013 at 7:54 | comment | added | Manoj Chandran | Initial field of expression mut be concrete sobject | |
Jul 23, 2013 at 7:53 | comment | added | Manoj Chandran | this throws error in list<Account_one> | |
Jul 23, 2013 at 7:39 | history | answered | S.Sharma | CC BY-SA 3.0 |