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

Check for a WordPress ID before creating an object map. #352

Closed jonathanstegall closed 4 years ago

jonathanstegall commented 4 years ago

What does this PR do?

This fixes #350 by checking for a WordPress ID before creating or updating an object map. If it does not have that value, it creates an error log.

How do I test this PR?

I'm a little unsure how to test this yet. It's not exactly clear to me what causes this error to happen.

jonathanstegall commented 4 years ago

I think this is the best way. We can log it if there's no WP ID when we first start trying to push. Then in case it gets deleted in the middle, we check one more time before sending to the mapping class.