Support » Plugin: Object Sync for Salesforce » Programatically update Salesforce ID (Salesforce object)

  • Resolved danatpi

    (@danatpi)


    Hello! Is it possible to update the Salesforce mapping for a user programmatically? I know I can manually edit the Salesforce ID on a user, but is there a hook to update that Salesforce ID mapping?

    https://i.imgur.com/ITjIFgX.png

    Thanks,
    Dan

    • This topic was modified 2 months, 1 week ago by danatpi.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Jonathan Stegall

    (@jonathanstegall)

    Hm, I’m not sure if this would work. I haven’t tried it. I think you could possibly try the object_sync_for_salesforce_push_params_modify filter. The plugin uses this to filter the parameters when it pushes updated data to Salesforce. If that doesn’t work, I think you could also possibly do it with the object_sync_for_salesforce_pre_push action, which runs immediately before data is sent to Salesforce. You could maybe run your own method to update the database value on that action.

    Thread Starter danatpi

    (@danatpi)

    Awesome, thanks for the speedy response Jonathan! I’ll report back here with my findings in case its helpful for anyone else.

    Thanks,
    Dan

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.