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 / Update SP profile mult...
Power Automate
Suggested Answer

Update SP profile multiple properties

(0) ShareShare
ReportReport
Posted on by 35
I want to update multiple properties for a user in one step. Currently, I have broken this down into one step with a separate HTTP POST request each time. How can I optimize this?
 
Categories:
I have the same question (0)
  • Suggested answer
    SwatiSTW Profile Picture
    741 Super User 2025 Season 2 on at
    You are trying to update multiple SharePoint user profile properties, but each API call only supports one property at a time. So your current flow sends many HTTP requests, which is not efficient.
    1. There is no SharePoint API to update multiple properties in one request
    2. /SetSingleValueProfileProperty only supports one property per call
    3. Best option is to use a loop with one HTTP action inside
    4. First create an array variable in your flow with property names and values
        [
          {
            "propertyName": "SPS-ParkingLot",
            "propertyValue": "P1"
          },
          {
            "propertyName": "SPS-Birthday",
            "propertyValue": "23 januari"
          }
    ]
    5. Use "Apply to each" on that array
    6. Inside the loop, add HTTP request to SharePoint
    7.  Method is POST
    8.  URI is
        _api/SP.UserProfiles.PeopleManager/SetSingleValueProfileProperty
    9. Headers are
        accept: application/json;odata=verbose  
        content-type: application/json;odata=verbose
    10. Body is
        {
          "accountName": "i:0#.f|membership|user@domain.com",
          "propertyName": "@{items('Apply_to_each')?['propertyName']}",
          "propertyValue": "@{items('Apply_to_each')?['propertyValue']}"
        }
    11. This will send one HTTP call per property, but the flow is cleaner and reusable
    12. This method still makes multiple API calls, but you don’t need to repeat actions manually

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

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard