I am trying to add new values to option set.
Currently below is the code which i am using.
InsertOptionValueRequest insertOptionValueRequest = new InsertOptionValueRequest
{
AttributeLogicalName = "new_country",
EntityLogicalName = "contact",
Label = new Microsoft.Xrm.Sdk.Label("Test", 1033),
Value = 100000001
//Value = 2
};
int insertOptionValue = ((InsertOptionValueResponse)_service.Execute(insertOptionValueRequest)).NewOptionValue;
_service.Execute(new PublishAllXmlRequest());
I am getting an error on insertion stating : "another picklist or status option for this option Set already exists with that value".
Any guess whats wrong here?
*This post is locked for comments