Activity › Forums › Salesforce® Discussions › Trigger to update contact owner in Salesforce
Tagged: Contact Record, Record Owner, Salesforce Apex, Salesforce Customization, Salesforce Development, Salesforce SOQL, Salesforce Trigger
-
Trigger to update contact owner in Salesforce
Posted by Vishant on June 19, 2017 at 6:51 AMtrigger if account owner changes then related contact owner also change.
Vishant replied 8 years, 11 months ago 2 Members · 8 Replies -
8 Replies
-
You can achieve this using Process Builder. Simple and easy! Try once, and let me know if you need the whole solution.
- [adinserter block='9']
-
You mean to say if a user changes the Account owner, the related Contact owner should be updated to the same Account Owner?
-
Yes thats the scenario …i tried it with Process builder but there was an error of flow…i encountered same error from the trigger
-
Hope it may help you. Click to see the solution..
Process Builder – Account Owner Change Update Related Contact Owner
-
Still not working i had done the same thing and the error is
Workflow Action Failed to Trigger Flow
The record couldn’t be saved because it failed to trigger a flow. A flow trigger failed to execute the flow with version ID 3016F000000QT26. Flow error messages: <b>An unhandled fault has occurred in this flow</b><br>An unhandled fault has occurred while processing the flow. Please contact your system administrator for more information. Contact your administrator for help.Click here to return to the previous page.
Can u do it with the trigger
-
This worked for me thru Process Builder. Try to debug or go thru Process Builder error report to see the reason for failure.
As far as trigger is concerned, this could be the solution.. UpdateContactOwner
You can comply with your trigger template design pattern.
-
I got the issue in the process builder. There is a minor update in Step #3 in the attached solution document.
Process Builder – Account Owner Change Update Related Contact Owner
-
Yes I had done the same step that you had done in your latest attached document. There might be some issues with process builder thts y i m doing it with triggers but encountering the same probz
Log In to reply.