• #20534
    Salesforce | Vishant Vishant #36

    Trigger to update contact owner in Salesforce

    trigger if account owner changes then related contact owner also change.

    Tagged: , , , ,

    Salesforce | Sudhir Sudhir #9

    You can achieve this using Process Builder. Simple and easy! Try once, and let me know if you need the whole solution.

    Salesforce | Sudhir Sudhir #9

    You mean to say if a user changes the Account owner, the related Contact owner should be updated to the same Account Owner?

    Salesforce | Vishant Vishant #36

    Yes thats the scenario …i tried it with Process builder but there was an error of flow…i encountered same error from the trigger

    Salesforce | Sudhir Sudhir #9

    Hope it may help you. Click to see the solution..

    Process Builder – Account Owner Change Update Related Contact Owner

    Salesforce | Vishant Vishant #36

    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

    Salesforce | Sudhir Sudhir #9

    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.

    Salesforce | Sudhir Sudhir #9

    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


    Salesforce | Vishant Vishant #36

    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


Viewing 9 posts - 1 through 9 (of 9 total)

Please to reply to this topic.


We're not around right now. But you can send us an email and we'll get back to you, asap.


About Us

Forcetalks is a Salesforce collaboration platform for coders & developers, geeks & nerds, consultants & business heads, admins & architects, managers & marketers and of course the business owners. A community where you can learn from, where you can contribute to. For you. For Salesforce. Read More...

Property of Forcetalks.com
Copyright 2017 Forcetalks. All Right Reserved.

Log in with your credentials


Forgot your details?