web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get Data return by sen...
Power Automate
Unanswered

Get Data return by send http Sharepoint

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi Everyone

 

I'm a total newbie in API, and I'd like to find a way to get an id that my http request get in its body,

So here I'm creating some new group in my sharepoint on premise,

so here how I create my group: (it works)

 

 

FlowCut.png

and this is the body result:
 
"d": {
"__metadata": {
"id": "http://SharePointsite/PWA/IT Compliance/_api/Web/SiteGroups/GetById(30)",
"uri": "http://SharePointsite/PWA/IT%20Compliance/_api/Web/SiteGroups/GetById(30)",
"type": "SP.Group"
},
"Owner": {
"__deferred": {
"uri": "http://SharePointsite/PWA/IT%20Compliance/_api/Web/SiteGroups/GetById(30)/Owner"
}
},
"Users": {
"__deferred": {
"uri": "http://SharePointsite/PWA/IT%20Compliance/_api/Web/SiteGroups/GetById(30)/Users"
}
},
"Id": 30,
"IsHiddenInUI": false,
"LoginName": "Owners -IT Compliance",
"Title": "Owners -IT Compliance",
"PrincipalType": 8,
"AllowMembersEditMembership": false,
"AllowRequestToJoinLeave": false,
"AutoAcceptRequestToJoinLeave": false,
"Description": null,
"OnlyAllowMembersViewMembership": true,
"OwnerTitle": "Axel Lemaitre",
"RequestToJoinLeaveEmailSetting": null
}
 
I'd like to know how can I set the line: "Id": 30, in a variable?
Thank you for your help 🙂
Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Do you want to get the value of Id from the body result that you mentioned?

     

    If yes, you could add a Compose to save the Body, and then you could get the Id from the body with expression below:

    outputs('Compose')?['Id']

     

    You could refer to screenshot below to create the flow:

    1.PNG

     

    Please let me know if your problem could be solved or let me know if you have any questions.

     

     

    Best regards,

    Mabel   

           

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @v-yamao-msft 

     

    Thank you for your answer but there isn't outputs funtion in Flow, is there another function?

    Because if I add:

    outputs('Compose')?['Id']

     

    I save, I leave and I come back and there command has dissapear and it's replace by an empty value: Id

  • v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    I have added two compose actions, in the first Compose action, select the output of Send an HTTP request to SharePoint, then in the next compose action, input the code I suggested.

     

    By the way, it is a default behavior that some functions will be replaced with its original field name when you come back to edit the flow.

     

    Hope this makes sense.

     

    Best regards,

    Mabel          

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 283

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard