New Wordpress object is not pushed to Salesforce if Salesforce user can create but can't edit records #540
Labels
bug
Something isn't working
needs to be replicated
We need to see this issue again to know how it's happening
Describe the bug
Hi, I was trying to setup a Leads push and I noticed that when using a Salesforce user who can create Leads but cannot edit them, the plugin doesn't push the new Wordpress record to Salesforce. Adding Edit permission to the user solves this, but it prevents to use a least privileges possible policy and results in a confusing UX.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
If the Salesforce user can create records, new Wordpress records should be pushed to Salesforce.
Screenshots
Screenshot of ignored push log:
Environment (please complete the following information):
Additional context
I think this is due to considering as locked / read-only fields those who are not updateable, even when they are createable.
See this in Fiedmap page and the next one used in push class:
object-sync-for-salesforce/templates/admin/fieldmaps-add-edit-clone.php
Line 310 in 9e4535e
object-sync-for-salesforce/classes/class-object-sync-sf-mapping.php
Line 1096 in 9e4535e
The text was updated successfully, but these errors were encountered: