Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Syntax for .crm.dynamics.com/api/data/v9.0/DeleteOptionValue

(1) ShareShare
ReportReport
Posted on by 623

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
}
]
}
}

 

ctedesco3307_0-1679152263942.png

 

  • abm abm Profile Picture
    32,486 Most Valuable Professional on at
    Re: Syntax for .crm.dynamics.com/api/data/v9.0/DeleteOptionValue

    Hi @ctedesco3307 

     

    If you want to delete via HTTP action step then follow the below step.

     

    image.png

     

    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

  • abm abm Profile Picture
    32,486 Most Valuable Professional on at
    Re: Syntax for .crm.dynamics.com/api/data/v9.0/DeleteOptionValue

    Hi @ctedesco3307 

     

    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.

     

    image.png

     

    Thanks

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492