-
-
Notifications
You must be signed in to change notification settings - Fork 53
Allow for bulk object maps to be created #98
Description
The plugin currently does not create object maps for items that already exist in WordPress or Salesforce. That is, if you have an item in either system, updating it will not flag the plugin's triggers and create an object map.
If you create a new item after installing the plugin, it will trigger the plugin and all its future updates will as well.
I think there's room to build a feature to create object maps for existing data.
Data requirements
For this to work, we'd need to create a new row in the wp_object_sync_sf_object_map for each existing item we wanted to trigger the plugin.
We'd need to know:
- Type of WordPress object
- WordPress object ID
OR
- Salesforce ID
Each item would then go through the push or pull process, including any prematch fields that would check to see if they had a matching record already, for example by sharing an email address. We have a basic version of this already on the user profile page, where users can be manually pushed to Salesforce as a new record, or mapped to an individual Salesforce ID.
Interface requirements
We'd need a usable way to guide people through this, but essentially we need to gather one or more Salesforce IDs that user wants to bring into WordPress (either by mapping them to existing WordPress IDs or by creating new items in WordPress), or one or more WordPress IDs that user wants to bring into Salesforce (in the same way).