Salesforce IDs not pulled back into WordPress (sometimes)
-
We are trying to get a better understanding of how Salesforce record IDs get to WordPress. In this example, for WordPress users who become Salesforce contacts.
A user registers in WordPress. Assuming we have a fieldmap for users with WordPress Create enabled, this results in a sync to Salesforce. The sync includes a temporary Salesforce ID. The sync creates a new contact record at Salesforce, which includes generation of a valid Salesforce ID that is saved in that record.
Under what conditions is that Salesforce ID pulled back to WordPress and replaces the temp ID in the wp_object_sync_sf_object_map table?
– Is this considered a “Salesforce Create” (though we didn’t create the record IN Salesforce, it “was created in Salesforce” (by the sync)), and so we would need to have Salesforce Create enabled as a sync trigger in the fieldmap?
– Or is there an automatic pull that should occur after pushing to get that Salesforce ID back to WP, regardless of the status of Salesforce Create?
We are finding that temp IDs are not always being updated in the WP database. We have Salesforce Create disabled in the fieldmap because the client doesn’t want every record entered into Salesforce to end up in WordPress. If that’s the problem, we can look into other ways of controlling which records end up in WP.
We also have a somewhat unique setup in that we don’t always push users to Salesforce when they are initially created. We allow a user to register with only an email address, and we don’t want to push those “thin” users to Salesforce to avoid crowding the contacts table with records that have no first and last name.
Later, if a user creates an order, we DO request the additional necessary user fields (name, etc), update their user in WP (which still has a temp SF ID), and at that point push the user (and order) to Salesforce.
I am assuming the plugin would consider this a “WordPress Update”, right? Since the user already existed in WordPress.
If we are creating a new Salesforce customer via WordPress Update, rather than via WordPress Create, would that have an effect on WordPress pulling the Salesforce ID back into the wp_object_sync_sf_object_map table?
Thanks!
- The topic ‘Salesforce IDs not pulled back into WordPress (sometimes)’ is closed to new replies.