web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Add new Choice value t...
Power Automate
Unanswered

Add new Choice value to existing column

(0) ShareShare
ReportReport
Posted on by

We are wanting to use the REST API to add a new value to a choice column, but also have it added alphabetically...not just to the bottom.

 

So far, when I'm reading is you can't just "Add" a field, you have to grab all the values in an array, then update that array option, then re-populate the choice column...am I off?

 

If the above is correct, how would I go about it?  I'm stuck on #3 step to push the new array back to the column so the new choice is visible.

 

1. Put current field values in array (seems pretty easy in FLOW with a REST API call

https://sitecollectionurl/_api/web/lists/getByTitle('ListName')/fields/getbytitle('ChoiceField')

 

2. Append new value to existing array variable (seems pretty easy in FLOW)

Use Append to String (of type Array) action

 

3. Call REST API to push values to column via POST:

{
"__metadata": { "type": "SP.FieldChoice" },
"Choices": { "__metadata": { "type": "Collection(Edm.String)" },
"results": OUTPUT from PowerAutomate Action }
}

 

 

4. Seems like once the #3 POST is done, I can call the collection again with a GET sort, push that to the array, then re-POST to the column to sort the values...not just append to the end.

Categories:
I have the same question (0)
  • rolanddaane Profile Picture
    73 on at

    Hi,
    When I try this I get an error The parameter __metadata does not exist in method GetByTitle.
    Do you maybe know how to get around that?

    rolanddaane_0-1637865228982.png

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 425 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard