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 / Extract JSON propertie...
Power Automate
Answered

Extract JSON properties name as data from HTTP Request

(0) ShareShare
ReportReport
Posted on by 4

Hello Community ! 

I do have a challenge as processing data after receiving it from an HTTP Request in Power Automate :

 

I do list Connexion IDs available on a specific user on Apache/Guacamole and I want to remove it from the user through a power automate flow.

 

Unfortunatly I can't loop on those values as they seems to be properties, so parsing it through Parse JSON does not make sense as the result will change everytime the flow runs cause it will be a different user and thus the Connexion IDs

 

here is the HTTP response : 

 

{
  "connectionPermissions": {
    "418": [
      "READ"
    ],
    "419": [
      "READ"
    ],
    "424": [
      "READ"
    ],
    "425": [
      "READ"
    ],
    "426": [
      "READ"
    ],
    "427": [
      "READ"
    ],
    "428": [
      "READ"
    ],
    "429": [
      "READ"
    ],
    "430": [
      "READ"
    ],
    "431": [
      "READ"
    ],
    "432": [
      "READ"
    ],
    "433": [
      "READ"
    ],
    "559": [
      "READ"
    ],
    "590": [
      "READ"
    ],
    "591": [
      "READ"
    ],
    "592": [
      "READ"
    ],
    "593": [
      "READ"
    ]
  },
  "connectionGroupPermissions": {
    "49": [
      "READ"
    ]
  },
  "sharingProfilePermissions": {},
  "activeConnectionPermissions": {},
  "userPermissions": {
    "TEAM2": [
      "READ"
    ]
  },
  "userGroupPermissions": {},
  "systemPermissions": []
}
 
I'm sad cause my Connexion ID is actually a property on the JSON and I cannot use it as dynamics values, in the response: 418, 419 .... are the data I want to use cause it is the connexion reference, and then I can remove it from the user profile.
I cannot extract this value to use it in my flow unfortunatly
I'm now trying through XPATH to manage it as XML object, but my expression is not working :
xpath(xml(variables('DelConUser')), '/connectionPermissions/*')
 
 I get the error : 
Unable to process template language expressions in action 'Compose' inputs at line '0' and column '0': 'The template language function 'xml' parameter is not valid. The provided value cannot be converted to XML: 'JSON root object has multiple properties. The root object must have a single property in order to create a valid XML document. Consider specifying a DeserializeRootElementName. Path 'outputs.591'.'. Please see https://aka.ms/logicexpressions#xml for usage details.'.
 
Can I get some help from you on this specific topic ?

Have a good one ! 
Categories:
I have the same question (0)
  • Verified answer
    v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @olivelandive 

    I create a test flow from your sample json, this is the result:

    vyueyunmsft_0-1717031724377.png

    You can refer to this, the Compose action is used to create the sample json data:

    vyueyunmsft_2-1717031792417.png

     

    xpath(xml(json(concat('{ "root": ', string(outputs('Compose')?['connectionPermissions'] ), ' }') )) ,'/root/*')
    replace( replace( xpath(item(), 'name(/*)') , '_x003' , '') , '_','')

     

    If this reply can help you , you can click mark this reply as solution (Accept solution) which can help more people, thanks in advance! 

     

    Best Regards,

    Yueyun Zhang

     

  • olivelandive Profile Picture
    4 on at

    Amazing job ! Thanks a lot ! 

    I wish I can learn how to manipulate data like you are, can you please tell me more about the source that leads you to write this ? I think that learning expression with PowerAutomate is not easy as trying and error takes too long in my opinion.

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

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
David_MA Profile Picture

David_MA 60 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 54

#3
Expiscornovus Profile Picture

Expiscornovus 47 Most Valuable Professional

Last 30 days Overall leaderboard