Title: Programatically update Salesforce ID (Salesforce object)
Last modified: March 8, 2021

---

# Programatically update Salesforce ID (Salesforce object)

 *  Resolved [danatpi](https://wordpress.org/support/users/danatpi/)
 * (@danatpi)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/programatically-update-salesforce-id-salesforce-object/)
 * 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](https://i.imgur.com/ITjIFgX.png)
 * Thanks,
    Dan
    -  This topic was modified 5 years, 2 months ago by [danatpi](https://wordpress.org/support/users/danatpi/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Jonathan Stegall](https://wordpress.org/support/users/jonathanstegall/)
 * (@jonathanstegall)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/programatically-update-salesforce-id-salesforce-object/#post-14151389)
 * 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`](https://github.com/MinnPost/object-sync-for-salesforce/blob/master/docs/extending-parameters.md#salesforce-push)
   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`](https://github.com/MinnPost/object-sync-for-salesforce/blob/master/docs/extending-before-and-after-saving.md#salesforce-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](https://wordpress.org/support/users/danatpi/)
 * (@danatpi)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/programatically-update-salesforce-id-salesforce-object/#post-14157030)
 * 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)

The topic ‘Programatically update Salesforce ID (Salesforce object)’ is closed to
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/object-sync-for-salesforce.svg)
 * [Object Sync for Salesforce](https://wordpress.org/plugins/object-sync-for-salesforce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/object-sync-for-salesforce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/object-sync-for-salesforce/)
 * [Active Topics](https://wordpress.org/support/plugin/object-sync-for-salesforce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/object-sync-for-salesforce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/object-sync-for-salesforce/reviews/)

## Tags

 * [mapping](https://wordpress.org/support/topic-tag/mapping/)
 * [user](https://wordpress.org/support/topic-tag/user/)

 * 2 replies
 * 2 participants
 * Last reply from: [danatpi](https://wordpress.org/support/users/danatpi/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/programatically-update-salesforce-id-salesforce-object/#post-14157030)
 * Status: resolved