cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Murari
Frequent Visitor

How to read the data from json and the values should be used

In the body I will get no.of objects. For ex:

"Processes_x0020_Impacted": [
{
"@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
"Id": 1,
"Value": "Business Enablement"
},
{
"@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
"Id": 2,
"Value": "Clinical Development"
},
{
"@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
"Id": 3,
"Value": "Communications"
}
],
"Strategic_x0020_Priority": [
{
"@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
"Id": 1,
"Value": "Deliver transformative innovation"
},
{
"@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
"Id": 0,
"Value": "Build trust with society"
}
],

How i can get the the values. Please guide me on this.

 

@CFernandes :Help me

 

1 ACCEPTED SOLUTION

Accepted Solutions
CFernandes
Super User
Super User

Hey @Murari 

 

  • Formula - json(<Your Variable>)
  • Parse JSON - Content output of Compose 2.

 

Steps to create payload -

  • Click on Generate from sample and pasted the JSON below.

 

[
{
"@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
"Id": 1,
"Value": "Business Enablement"
},
{
"@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
"Id": 2,
"Value": "Clinical Development"
},
{
"@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
"Id": 3,
"Value": "Communications"
}
],
"Strategic_x0020_Priority": [
{
"@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
"Id": 1,
"Value": "Deliver transformative innovation"
},
{
"@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
"Id": 0,
"Value": "Build trust with society"
}
]

 

  • Add a compose action and access the variable - Apply to each will be added automatically as the output is an Array.

 

CFernandes_0-1600265494682.png

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

 

View solution in original post

1 REPLY 1
CFernandes
Super User
Super User

Hey @Murari 

 

  • Formula - json(<Your Variable>)
  • Parse JSON - Content output of Compose 2.

 

Steps to create payload -

  • Click on Generate from sample and pasted the JSON below.

 

[
{
"@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
"Id": 1,
"Value": "Business Enablement"
},
{
"@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
"Id": 2,
"Value": "Clinical Development"
},
{
"@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
"Id": 3,
"Value": "Communications"
}
],
"Strategic_x0020_Priority": [
{
"@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
"Id": 1,
"Value": "Deliver transformative innovation"
},
{
"@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
"Id": 0,
"Value": "Build trust with society"
}
]

 

  • Add a compose action and access the variable - Apply to each will be added automatically as the output is an Array.

 

CFernandes_0-1600265494682.png

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

 

View solution in original post

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,043)