MinnPost / object-sync-for-salesforce

WordPress plugin that maps and syncs data between Salesforce objects and WordPress objects.
https://wordpress.org/plugins/object-sync-for-salesforce/
GNU General Public License v2.0
94 stars 51 forks source link

When loading multiple object maps for the same Salesforce object, the fieldmap needs to be specified #437

Closed jonathanstegall closed 2 years ago

jonathanstegall commented 2 years ago

Describe the bug In #420, we have the ability for multiple fieldmaps to work with the same Salesforce object. However, the load_all_by_salesforce method on Object_Sync_Sf_Mapping is not fieldmap-specific, so it loads object maps that are not part of the desired fieldmap.

This isn't exactly a bug since it's part of a new feature that hasn't been released yet.

To Reproduce Steps to reproduce the behavior:

  1. create two fieldmaps that work with the same Salesforce object
  2. modify data on a record in Salesforce and watch the logs