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 / Send HTTP request to S...
Power Automate
Unanswered

Send HTTP request to SharePoint - POST multiple fields on new list item - JSON code

(0) ShareShare
ReportReport
Posted on by

Hi there!

 

I am trying to use this REST to create a new list item. I can get it to work with just the first field ("Title"). But I can't seem to get the code right to update the second field. 

 

As the list name is dynamic, it is not as simple as adding another step to update the list item. json code trouble.PNG

Categories:
I have the same question (0)
  • ChristianAbata Profile Picture
    8,951 Most Valuable Professional on at

    hi @Anonymous  please see the example below

    example.png

  • Community Power Platform Member Profile Picture
    on at

    @ChristianAbata this is the example I started with but my flow would never resolve the "type" when I used the SP.Data.ListName.ListItem

     

    I had to use the SP.FieldText to get my title to post. and it won't apply to the Adherence column because it is a number value. I either have the wrong type for Adherence or my JSON is written incorrectly. I am trying to use https://quicktype.io/ to format the JSON and I'm getting an error on the flow on invalid JSON.

  • ChristianAbata Profile Picture
    8,951 Most Valuable Professional on at

    @Anonymous  Maeby you can try with this json

     

    [{
    "_metadata":{
    	"type": "SP.FieldText"
    	},
    	"Title": "Week"
    },
    {
    "_metadata":{
    	"type": "SP.FieldText"
    	},
    	"Adherence": "Adherence"
    }]
  • Community Power Platform Member Profile Picture
    on at

    It didn't like the node 😞

     

    So I reversed the {} and the [] at the beginning and end, and I'm back to the same error:

     

     
    "message": "Invalid JSON. The property name '' is not valid. The name of a property cannot be empty.\r\nclientRequestId: 95c766aa-acdb-41bf-8c4b-cc0ca0d62de4\r\nserviceRequestId: ce98399f-f0dc-9000-8099-f5c92a3488ee",
    "status": 400,
     
  • ChristianAbata Profile Picture
    8,951 Most Valuable Professional on at

    @Anonymous  could you share an screanshot?

  • jrtraylor Profile Picture
    45 on at

    This is an old thread so I am assuming you got it sorted out. The answer posted by @ChristianAbata is the method I use to add a new list item and fill in multiple fields for that item, I do put the __metadata line at the top of the body entry though. I however am trying use one http request action to add multiple items at once instead of having to enter the action multiple times. In my case I am trying to add multiple links to the quick launch navigation with no luck. I tried to wrap the 2 entries in [] as mentioned above but I got an error. 

    [{
    "__metadata": {"type":"SP.NavigationNode"},
    "Title": "LINK TEST 2",
    "Url": "https://linka/"
    },
    {
    "__metadata": {"type":"SP.NavigationNode"},
    "Title": "LINK TEST 3",
    "Url": "https://linkb/"
    }]

    A node of type 'StartArray' was read from the JSON reader when trying to read the start of an entry. A 'StartObject' node was expected.
    clientRequestId: cafa6478-eb00-4e24-b3f3-96902f32229d
    serviceRequestId: 96a69fa0-e03b-3000-4b57-d447aac80409

  • DEVREYES Profile Picture
    99 on at

    Hello..right now I'm not sure how to update multiple columns but what I now is that you can use below JSON to update a hyperlink column:

     

    {
           "formValues":[
                 {
                    "FieldName": "ApproveorReject",
                     "FieldValue": "<YourLinkHere>", <YourURLName>"
    }
    ],
    "bNewDocumentUpdate": true
    }

     

    This is what I did and it works.

    DEVREYES_3-1683349491735.png

     

     

    This is the result:

    DEVREYES_2-1683349282122.png

    Thanks to this blog: Update single SharePoint hyperlink column in Power Automate flow 

     

    Please let me know as well if you managed to update multiple columns, I also need that tutorial. 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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard