I was trying to found out how we can add a new value to a global option set and below post request can do the same :
https://vgrade2.api.crm8.dynamics.com/api/data/v9.1/InsertOptionValue { "OptionSetName": "new_test", "Label": { "LocalizedLabels": [ { "Label": "anewoptionsetlabel", "LanguageCode": 1033 } ] } }
Output:
{ "@odata.context": "https://vgrade2.api.crm8.dynamics.com/api/data/v9.1/$metadata#Microsoft.Dynamics.CRM.InsertOptionValueResponse", "NewOptionValue": 100000005 }
Be default it put the new option set in alphabetic order so you might want to add it in the end.
Thanks
sounds great!
How Can I use the function UpdateOptionValue?
LikeLike