Salesforce/PHP - Make field read-only after user has entered value -
In the Salesforce I have an account that I have two fields in that account, after some processes running in the background, with PHP SDK Population happens. PHP SDK updates fields in some situations, when this happens I would like to lock that field to read-only. Can I do this with PHP SDK?
You want your "lock" database (or in this case - at the Salesforce level), but not PHP SDK level because otherwise it will catch the malicious user data loader or Excel connector and bypassing your lock will proceed with your updates;)
Try the salesforce legalization rules or (if your argument is complex) Trigger a "first update".
Example:
AND (ISPKWAL (PRIORVALUE (type), "technical partner"), Error message to display: type type type, $ profile .name
After the "Technology partner" is set, only administrators can modify this field.
This is just a starting point, easy to use and fine. You can still disable this rule after migration.
For more goods or see The function should be especially useful for you.
Comments
Post a Comment