Does anyone know the syntax / body for DeleteOptionValue Action for the Create and update choices (option sets) using the Web API in dynamics?
Using Invoke HTTP in Power Automate --
This body works for InsertOptionValue.
I guessed it would work for DeleteOptionValue. i guessed wrong. 🙂
{
"OptionSetName": "crb09_seasons",
"Label": {
"LocalizedLabels": [
{
"Label": "springfall",
"LanguageCode": 1033
}
]
}
}
If you want to delete via HTTP action step then follow the below step.
Under the body pass the below JSON format. Here you need to specify the value of the optionset (Integer value).
{
"OptionSetName":"ajb_sportscategories",
"AttributeLogicalName":"ajb_sportscategories",
"Value":748250000
}
Thanks
There is another way you could delete the option set value without using the HTTP. Use the Dataverse 'Perform an unbound action' step. Then specify your optionset name and value (numeric) you want to delete.
Thanks
Michael E. Gernaey
566
Super User 2025 Season 1
David_MA
516
Super User 2025 Season 1
stampcoin
492