Activity Forums Salesforce® Discussions Trigger to update contact owner in Salesforce

  • Sudhir

    Member
    June 19, 2017 at 9:05 am

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

  • Sudhir

    Member
    June 19, 2017 at 9:07 am

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

  • Vishant

    Member
    June 20, 2017 at 6:47 am

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

  • Sudhir

    Member
    June 20, 2017 at 8:30 am

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

    Process Builder - Account Owner Change Update Related Contact Owner

  • Vishant

    Member
    June 20, 2017 at 9:20 am

    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

  • Sudhir

    Member
    June 20, 2017 at 9:42 am

    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.

  • Sudhir

    Member
    June 20, 2017 at 9:51 am

    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

     

  • Vishant

    Member
    June 20, 2017 at 10:00 am

    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.

Popular Salesforce Blogs