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
93 stars 49 forks source link

Add an error handler on the Authorize screen in case no data is returned by the demo API call. #469

Closed jonathanstegall closed 2 years ago

jonathanstegall commented 2 years ago

What does this Pull Request do?

In some cases when the API authorization has expired, the plugin does not detect that this has happened and so it still tries to load the demo 100 contacts from Salesforce. This pull request checks to make sure there is a success code on that API call, and that there are records returned.

How do I test this Pull Request?