When creating new view for listing objects within standard Salesforce I can set the filter criteria. It is possible of course to filter by some picklist value. The value can be entered manually or with lookup-like chooser. Then, when I manually enter some value that is not predefined, I get the Error: Picklist value does not exist
.
But, when I set the same picklist filed with some non-predefined value from APEX, say abc
, then I can insert abc
as the value in filter section when creating a view and get no errors. However it is still not present in the chooser.
I'm sure it's not a bug but I'm wondering what is the reason of such behavior. I found it a little bit confusing.