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

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Writing to a SP List URL Field - REST API

(0) ShareShare
ReportReport
Posted on by 94

I'm getting an error when trying to write to a SharePoint List URL field using REST API. Please see below:

 

EdwardHodson_0-1664135685489.png 

{"__metadata": {
 type: "SP.Data.TESTINGTeamsSiteCreationListItem"
 },
 "TeamsLink": {
 "Url":"@{variables('URL')}",
 "Description": "MS Teams"
 }
}

Error:

EdwardHodson_1-1664135732598.png

All the documentation/guides I've seen seem to indicate that what I've done is correct, but I'm still hitting this issue.

 

Any help would be appreciated. Thank you

@Expiscornovus 

I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    32,859 Most Valuable Professional on at
    Re: Writing to a SP List URL Field - REST API

    Hi @EdwardHodson,

     

    In your headers you specified that you won't be using metadata. However, in the body you included the metadata property.

     

    Can you try and use application/json;odata=verbose in the accept and content-type headers instead. This way you don't have to change the body value

     

  • Expiscornovus Profile Picture
    32,859 Most Valuable Professional on at
    Re: Writing to a SP List URL Field - REST API

    Oh and it is worth checking if you used the correct type value in the json of the body. You can lookup this value via the listitementitytypefullname property.

     

    I have written an article about this approach: https://www.expiscornovus.com/2021/07/10/listitementitytypefullname-within-power-automate/

     

  • EdwardHodson Profile Picture
    94 on at
    Re: Writing to a SP List URL Field - REST API

    HI @Expiscornovus  - That's done it! Thanks for spotting my mistake. Also, thank you very much for the link to your article. I've added the "ListItemEntityTypeFullName" step in my flow.

     

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 666 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 382 Moderator

#3
developerAJ Profile Picture

developerAJ 254

Last 30 days Overall leaderboard