Timeline for Delete Contact Trigger after insert failing
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 13, 2017 at 12:54 | history | edited | CommunityBot |
replaced http://salesforce.stackexchange.com/ with https://salesforce.stackexchange.com/
|
|
Oct 21, 2016 at 10:10 | vote | accept | Alexander Aeons Torn | ||
May 6, 2016 at 6:44 | comment | added | Tushar Sharma | @AlexanderAeonsTorn also use some debug and get contact Id and query them also check for recursive trigger. | |
May 5, 2016 at 15:58 | comment | added | Adrian Larson♦ |
@Alex @future would be easier to maintain and should work just fine...
|
|
May 5, 2016 at 12:22 | comment | added | Alexander Aeons Torn | Actually I had to turn the code into a call to a schedulable method to delete the contact 1 min after. Really sad but I didn't find other way to pull it out. All the other things I tried kept showing me ENTITY_IS_DELETED error on conversion. I will attach the old code I tried to use on the original post, but first I have to write it again since I modified the mode. | |
May 5, 2016 at 12:00 | comment | added | Tushar Sharma | @AlexanderAeonsTorn can you please share your updated code. | |
May 5, 2016 at 10:38 | comment | added | Alexander Aeons Torn | The value of ConvertedContactId isn't null and even if I change the code to perform the delete with Contact Objects with that id's i'm still getting the same error. | |
May 5, 2016 at 10:33 | comment | added | Tushar Sharma |
first check you are getting value in L.ConvertedContactId . Also you can't delete like this create a contact instance first and store them in list and then perform delete operation
|
|
May 5, 2016 at 10:30 | comment | added | Alexander Aeons Torn | It's still not working even moving the trigger to Lead after update. | |
May 5, 2016 at 10:15 | history | answered | Tushar Sharma | CC BY-SA 3.0 |