Salesforce Fact #124 | Pick picklist carefully

We need to be careful while working with picklists, especially restricted picklists. It is the api name which we populate in the field, not the picklist value. In most of the cases, the api name and value is same, so we do not get the difference.

In this example, I have added a new picklist value Success with the api name as Con_Success in one picklist field of contact. We get error when the value is used, but using the api name does not show any error.

Attached are the screenshots.



 

 

Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow