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 Platform Community / Forums / Power Automate / Writing to a SP List U...
Power Automate
Unanswered

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 

Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,175 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
    33,175 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

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 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard