• Resolved drobin03

    (@drobin03)


    Is there a way to manually control the specific object mappings? I have an existing salesforce account and wordpress site that have been set up separately, and I want to pull in a few fields from Salesforce -> WordPress to avoid having to change those specific fields in two places in the future.

    I have set up a field mapping with a ‘Prematch’ field defined in an attempt to manually map rows together (see screenshot) https://s3.amazonaws.com/tag-public/Screen+Shot+2018-11-23+at+9.36.03+AM.png, but because I only have the ‘Salesforce Update’ action trigger set, then my object mappings are never created. From the little bit of digging into the code that I’ve done, it seems like the ‘create’ actions are the only ones that actually set up the object mappings.

    What I would like to be able to do, is manually tie my existing records together, and then have them auto-sync from Salesforce from then on, but I can’t seem to find a way to do that. Any ideas?

    • This topic was modified 7 years, 6 months ago by drobin03.
Viewing 1 replies (of 1 total)
  • Plugin Author Jonathan Stegall

    (@jonathanstegall)

    @drobin03 currently we don’t have this built into the plugin with the exception of syncing users to Salesforce objects by ID. You can see how that works by editing a user that isn’t the current logged in user (/wp-admin/user-edit.php?user_id=70844 for example).

    This is the only example we have built into the plugin itself because of the extra complexity of dealing with objects that are very different from users.

    If you have developer resources you could build an add-on to achieve this for other objects. I don’t think I’ll be adding this to the plugin in the near future, at least, simply for lack of time to deal with that kind of complexity.

    The other option you have is to manually create rows in the database. It can work like this:

    INSERT INTOwp_object_sync_sf_object_map(wordpress_id,salesforce_id,wordpress_object,created,object_updated,last_sync,last_sync_action,last_sync_status,last_sync_message`)
    VALUES
    (‘wp-id’, ‘sf-id’, ‘user’, ‘2016-03-21 15:37:51’, ‘2018-11-20 15:09:20’, ‘2018-11-20 15:09:20’, ‘pull’, 1, ‘manual import’);
    `

Viewing 1 replies (of 1 total)

The topic ‘Manually control object maps’ is closed to new replies.