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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Sharepoint List Field ...
Power Automate
Answered

Sharepoint List Field modification PUT/POST/PATCH request times out

(0) ShareShare
ReportReport
Posted on by 10
Hi, I want to add a choice option to a sharepoint list multichoice field. I want to do so using Power Automate, making an HTTP request to Sharepoint. As I want to modify an existing field, I use a PUT request, but the same issue persists with POST.
 
My request is structured as follows
 
Uri: _api/web/lists/getbytitle(<List>)/fields/getbyinternalnameortitle('Testspalte')
(This works correctly, GET is successful and delivers all metadata)
 
 
Headers: Content-Type, accept = application/json;odata=verbose
If-Match = *
 
Body:
{
"__metadata": { "type": "SP.FieldMultiChoice" },
"Choices": {
"__metadata": {
"type": "Collection(Edm.String)"
},
"results": [
"Choice 1",
"Choice 2",
"Choice 3",
"Choice 4" (so the new choice)
]
}
}
 
When running this request, it runs for 11 minutes and then times out. If I run a simple GET request for the field, I get all relevant metadata. I have already run the flow with a system admin account, which gives the same issue. I've tried the same logic on a "normal", non-multichoice field, but still the same issue.
 
What can I do?
Screenshot 2024-12-13 at 13.41.15.png
Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,851 Most Valuable Professional on at
     
    Can you try and use the getbytitle method instead to retrieve your field? Also try and use a PATCH method instead.
     
    Try the below
     
    ChoicesArray
    [
    "Choice 1","Choice 2","Choice 3","Choice 4"
    ]
     
     
    Method
    PATCH
     
    URI
    _api/web/lists/getbytitle('<List>')/fields/getbytitle('Testspalte')
     
    Headers
    {
      "Accept": "application/json;odata=verbose",
      "Content-Type": "application/json;odata=verbose",
      "If-Match": "*"
    }
     
     
    Body
    {
      "__metadata": {
        "type": "SP.FieldChoice"  },
        "Choices": { "results": @{variables('ChoicesArray')} }
    }

    Test result added choice






    Happy to help out 😁

    I share more #PowerAutomate and #SharePointOnline content on my Blog, Bluesky profile or Youtube Channel
  • LZ-06081459-0 Profile Picture
    10 on at
    Hi @Expiscornovus, thanks for the quick reply. I tried implementing the exact solution as proposed by you; still, I get a non-specified timeout. The field is correctly specified as my GET call returns all necessary information, both with my and your syntax. 
     
    I do get a "Retry history" where it says one retry and then bad gateway. I guess this is relevant; however, I don't understand it. The GET request apparently has the correct gateway, the OAuth is working and the issue persists if the admin runs the flow.
  • Expiscornovus Profile Picture
    33,851 Most Valuable Professional on at
     
    Can you share a screenshot of your current setup, maybe I am able to spot why it is not working based on that. 
     
    Are you using the outputs of the GET request in your PATCH request?
  • LZ-06081459-0 Profile Picture
    10 on at
     
    Hi @Expiscornovus, attached my flow. Testspalte2 is multi-choice, Testspalte is single-choice, but it does not work for either of them, regardless of SP.FieldMultiChoice or SP.FieldChoice.
     
    I do not run the GET request in the same flow as it's only for testing purposes. Also, no info from the GET is necessary.
    In theory I could run a GET, store it as text, replace the relevant section and run a PATCH that replaces the whole metadata, maybe. But to my understanding this isn't the issue here. Rather confused about the bad gateway.
  • Verified answer
    Expiscornovus Profile Picture
    33,851 Most Valuable Professional on at
     
    It looks like your URL in the URI field has two lines, caused by a trailing space character. Make sure there is no space directly after the last ')' and it is just a single line. Can you remove that and try again? Same for the accept header value. 
     
  • LZ-06081459-0 Profile Picture
    10 on at
    @Expiscornovus you have a sharp eye. Can't believe it, it worked now. Some hours of my life wasted, but at least it works. Thank you!!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 801

#2
Valantis Profile Picture

Valantis 602

#3
Haque Profile Picture

Haque 581

Last 30 days Overall leaderboard