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 / Set multi- “Person” fi...
Power Automate
Unanswered

Set multi- “Person” field in list using HTTP request instead of “Create Item”

(0) ShareShare
ReportReport
Posted on by

I'm trying to assign the value of column AssignedTo to multiple people, using data being read from another list with the same. I currently have this working with Create Item action, which requires hard-coding the Site / List name, and am trying to transition to using a generic HTTP request action to get around this. For all other fields this works fine, but when I try to set AssignedTo, I just can't find the right structure, or any way to inspect the working Create Item POST body so that I can compare.

 

For the Create Item action, I construct an array into a variable such as:

 

[
{"Claims": "i:0#.f|membership|me@company.com.au"},
{"Claims": "i:0#.f|membership|other@company.com.au"}
]

 


And that goes into the AssignedTo field in Create Item form, and it just works.

Now I set my new composed body for HTTP request to e.g.

 

{
"Title": "@{variables('DocumentPath')}:@{items('Each_Stage')['RunOrder']}",
"AssignedTo": @{variables('Claims')}
}

 

using the exact same array, and the HTTP POST returns: Value cannot be null. Parameter name: entitySet

Removing AssignedTo and creating with just Title only works.

I believe that for multi-fields in general you need to wrap this into an object such as:

 

"AssignedTo": {"results": @{variables('Claims')}}

 


So I've tried that but that just gives a different error A node of type 'StartObject' was read from the JSON reader when trying to read the contents of an entity set reference navigation link; however, a 'StartArray' node was expected.

I take that to mean it wants an array directly rather than this "results" object.

 

I've also tried both combinations but with the key "AssignedToId" instead of "AssignedTo", and both give errors:
* With array: 'StartObject' node was found ... A 'PrimitiveValue' node was expected.
* With object {"results": .. }: 'StartObject' node was found ... A 'StartArray' node was expected.

 

What am I missing here? I really want to avoid doing additional lookups of user data if it can be avoided, and clearly the "Claims" data should be authoritative and usable as it is, I just can't find the right way to express it in this request.

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @Anonymous 

     

    You need to construct the array like this.

     

    [
              { "Claims": "email1" },
              { "Claims": "email2" }
    ]

     

     

     

    Thanks

  • Community Power Platform Member Profile Picture
    on at

    I've overcome the first part of the problem  Value cannot be null. Parameter name: entitySet which was due to not having content-type header correct & missing __metadata.

     

    Now I'm able to get these HTTP bodies to POST without error, however the field is NOT being set, simply remains blank (with all other fields set correctly) when the multi-Person field has either of:

     

     "AssignedTo": [
     {"Claims": "me@company.com"},
     {"Claims": "other@company.com"}
     ]
     "AssignedTo": {
     "results": [
     {"Claims": "me@company.com"},
     {"Claims": "other@company.com"}
     ]
     }

     

     

     Same if I use the full Claim format "i:0#.f|membership|me@company.com" instead of just Email.

     

    Have tried combinations with "AssignedToId" instead of "AssignedTo", which results in data type errors on POST which point to this being the only valid format -

     

     

     "AssignedToId": {
     "results": [<Edm.Int32>, ...]
     }

     

     

    Is it the case that I need to resolve those Person ID and use this format to set the field?? Surely the Claims or Emails which I already have should work in some way?

     

  • Verified answer
    abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @Anonymous 

     

    A good question. Yes I did followed couple of documentation but didn't worked as expected. Finally managed to worked out how to update multiple values under Person or Group.

     

    Please have a look at my YouTube video which explains how to update multi-Person or Group using HTTP Rest API.

     

    https://youtu.be/Wi1o6WWvBNA

     

    If you have any questions please let me know.

     

    Thanks

     

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard