Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
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

  • DEVREYES Profile Picture
    99 on at
    Re: Send HTTP request to SharePoint - POST multiple fields on new list item - JSON code

    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

  • jrtraylor Profile Picture
    45 on at
    Re: Send HTTP request to SharePoint - POST multiple fields on new list item - JSON code

    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

  • ChristianAbata Profile Picture
    8,949 Most Valuable Professional on at
    Re: Send HTTP request to SharePoint - POST multiple fields on new list item - JSON code

    @Anonymous  could you share an screanshot?

  • Community Power Platform Member Profile Picture
    on at
    Re: Send HTTP request to SharePoint - POST multiple fields on new list item - JSON code

    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,949 Most Valuable Professional on at
    Re: Send HTTP request to SharePoint - POST multiple fields on new list item - JSON code

    @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
    Re: Send HTTP request to SharePoint - POST multiple fields on new list item - JSON code

    @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,949 Most Valuable Professional on at
    Re: Send HTTP request to SharePoint - POST multiple fields on new list item - JSON code

    hi @Anonymous  please see the example below

    example.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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1