You need to sign in to do that
Don't have an account?
Gallery Integration
Why a new picklist value is created while an exact picklist value is already there?
Hi All,
So I have a picklist field containing several set of value.
One of the value is "PD - Chairman's Circle".
When a record is created through an apex code with this value, instead of using the same value, a new picklist value with exact name is created.
I wonder what causes this? Something to do with UTF-8 encoding?
Here is my apex code:
donationRecord.Donor_Tier__c = 'PD - ' + tokenWrapperInstance.category;
So I have a picklist field containing several set of value.
One of the value is "PD - Chairman's Circle".
When a record is created through an apex code with this value, instead of using the same value, a new picklist value with exact name is created.
I wonder what causes this? Something to do with UTF-8 encoding?
Here is my apex code:
donationRecord.Donor_Tier__c = 'PD - ' + tokenWrapperInstance.category;
API names cannot have symbols. What is it that you are trying to achieve?
All Answers
What are the api names for picklist values at the object level, might help in the cracking this issue.
Thanks
RD
the api names of the picklist values are "PD - Chairman's Circle".
Is it Okay to put symbol on the api name?
Thanks,
Steven
API names cannot have symbols. What is it that you are trying to achieve?
Thanks for the help. But I manage to overcome this by removing the symbol.
Thanks