cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

GET ID from response body

Hello, 

I've made the following REST call to SharePoint:

 

REST1.png

When the flow is executed, I get the ID of the user in the body response:

IDREST1.png

 

How can I get only the value of the ID from this response body so that I can use it in a variable.

 

Thanks.

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Helper I
Helper I

Re: GET ID from response body

Found:

 

found1.png

 

Formula is:

body('action')['d']['id]

 

found2.png

 

View solution in original post

2 REPLIES 2
Highlighted
Helper I
Helper I

Re: GET ID from response body

Here is the whole body:

 

{
  "d": {
    "__metadata": {
      "type""SP.User"
    },
    "Alerts": {
      "__deferred": {
      }
    },
    "Groups": {
      "__deferred": {
      }
    },
    "Id"6,
    "IsHiddenInUI"false,
    "LoginName""i:0#.f|membership|admin@andreir4040.onmicrosoft.com",
    "Title""Andrei Rachita",
    "PrincipalType"1,
    "Email""admin@andreir4040.onmicrosoft.com",
    "Expiration""",
    "IsEmailAuthenticationGuestUser"false,
    "IsShareByEmailGuestUser"false,
    "IsSiteAdmin"true,
    "UserId": {
      "__metadata": {
        "type""SP.UserIdInfo"
      },
      "NameId""10032000d55bb8f7",
      "NameIdIssuer""urn:federation:microsoftonline"
    },
    "UserPrincipalName""admin@andreir4040.onmicrosoft.com"
  }
}
Highlighted
Helper I
Helper I

Re: GET ID from response body

Found:

 

found1.png

 

Formula is:

body('action')['d']['id]

 

found2.png

 

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Users online (3,996)