Timeline for Contact Trigger Help
Current License: CC BY-SA 4.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 13, 2019 at 18:01 | comment | added | gNerb |
I saw an error in the contact trigger that I updated, you may need to re-check the code. (I added an override to AccountService that accepts a set of account Ids and update the method call in the ContactTrigger ).
|
|
Mar 13, 2019 at 17:55 | history | edited | gNerb | CC BY-SA 4.0 |
edited body
|
Mar 13, 2019 at 17:42 | comment | added | gNerb | I think it depends on the question. If the approach as a whole doesn't work, you can update your question here. If you run into specific issues with the VF page, you can ask a new question. | |
Mar 13, 2019 at 17:37 | comment | added | user64312 | oh ok thanks I shall try to implement it. If I have additional questions shall I refer back to this post or do I need to create a new question post? | |
Mar 13, 2019 at 17:26 | comment | added | gNerb | @BWilliad I updated my answer, the code I previously provided is interestingly still accurate. I'll try to provide a sample VF page for display purposes when I have more time. | |
Mar 13, 2019 at 17:25 | history | edited | gNerb | CC BY-SA 4.0 |
added 2 characters in body
|
Mar 13, 2019 at 17:02 | comment | added | user64312 | Noted, I've updated my post with my class and trigger for the contact role logic I made | |
Mar 13, 2019 at 16:42 | comment | added | gNerb | Its also worth noting that providing code will help prevent confusion. Your code will usually tell us what you're trying to do, much better then words will. | |
Mar 13, 2019 at 16:21 | comment | added | gNerb | Sure, I can definitely help with that as well, your question says you have a class that is performing that work for you. So chances are the behavior your expressing is a problem in that custom class. Can you provide the code of that class so we can take a look? But please also, review my answer as it does refer to several of the issues you have in your trigger that you should avoid. | |
Mar 13, 2019 at 16:02 | comment | added | user64312 | Thanks for your help but I think you're misunderstand the requirements I was given. I want the trigger on a Contact to update related lists on Accounts, not the list of the AccountContactRoles itself. Right now, upon creation of a Contact on a parent account the Name and Role of that Contact will appear on all child accounts of that parent. The issue that was pointed out to me is that when the Contact on the parent is edited the roles on the child records do not update it is simply added again. | |
Mar 11, 2019 at 19:17 | history | edited | gNerb | CC BY-SA 4.0 |
deleted 27 characters in body
|
Mar 11, 2019 at 19:07 | history | answered | gNerb | CC BY-SA 4.0 |