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 / How to Extract Attribu...
Power Automate
Answered

How to Extract Attribute value from JSON output

(0) ShareShare
ReportReport
Posted on by 174

Hello, 

 

I have a JSON output from a source each time with multiple objects that have several attributes, each defined by an objectTypeAttribute object. I'm trying to extract the particular value of an objectTypeAttributeId 926, which should be 386 for this example, and use that value for a condition. As we have multiple objects with the same name, objectTypeAttributeId and value, what is the best way to extract it? Thank you for your help in advance. 

 

godala_vamshi_0-1716921112525.png

 

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @godala_vamshi ,

     

    Please try this

    vxiaochenmsft_0-1716948784836.png

    item()?['objectTypeAttributeId']
    string(926)
    body('Filter_array')?[0]?['objectTypeAttributeValues']?[0]?['value']
     
    vxiaochenmsft_1-1716948818149.png

     

     

    Best Regards,

    Wearsky

  • godala_vamshi Profile Picture
    174 on at

    @v-xiaochen-msft Thank you for your time on this. I have tried your suggestion but the compose output coming as blank. 
    I have also tried other way but still coming as blank. 

    godala_vamshi_0-1716956999001.png

    godala_vamshi_1-1716957092085.png

     

    godala_vamshi_2-1716957202148.png

     

  • godala_vamshi Profile Picture
    174 on at

    @v-xiaochen-msft  I just notice you passed 'objectTypeAttributeValues' in Array on your example but JSON response I'm working with will have multiple objects in below format and I don't see objectTypeAttributeValues in my JSON. 
    {
    "workspaceId": "21b184a3-5411-4d4c-a9af-dcf7fb6c792d",
    "globalId": "21b184a3-5411-4d4c-a9af-dcf7fb6c792d:121231",
    "id": "121231",
    "objectTypeAttribute": {
    "workspaceId": "21b184a3-5411-4d4c-a9af-dcf7fb6c792d",
    "globalId": "21b184a3-5411-4d4c-a9af-dcf7fb6c792d:926",
    "id": "926",
    "name": "ID",
    "label": false,
    "type": 0,
    "description": "",
    "defaultType": {
    "id": 0,
    "name": "Text"
    },
    "editable": true,
    "system": false,
    "sortable": true,
    "summable": false,
    "indexed": true,
    "minimumCardinality": 0,
    "maximumCardinality": 1,
    "removable": true,
    "hidden": false,
    "includeChildObjectTypes": false,
    "uniqueAttribute": false,
    "options": "",
    "position": 0
    },
    "objectTypeAttributeId": "926",
    "objectAttributeValues": [
    {
    "value": "2013",
    "displayValue": "2013",
    "searchValue": "2013",
    "referencedType": false
    }
    ],
    "objectId": "2378"
    }

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 250 Super User 2026 Season 1

#2
Expiscornovus Profile Picture

Expiscornovus 222 Most Valuable Professional

#3
Haque Profile Picture

Haque 174

Last 30 days Overall leaderboard