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

Can't set variable from Parse JSON output

I'm building a flow that pulls together data from different SharePoint lists and uses it to populate a Word template.

 

One of the pieces of data that I'm trying to use is from a managed metadata column, so I have to use "Send an HTTP request" to access it.

 

I'm trying to use "Parse JSON" to get the variable that I need out of the output of the HTTP request, and the output from that seems to be fine. However, when I try to set the variable to one of the values from the JSON output, it surrounds it with an apply to each for results and then errors out.

 

Any ideas why this might be the case? Thanks!

 

Pictures below.

 

Flow design:

http-request.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Parse JSON output (the value I'm after is "Sheriff"):

json-output.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Error:

apply-to-each-error.jpg

1 REPLY 1
annajhaveri
Community Champion
Community Champion

@troymill  can you please share the json that you are using in parse json

Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (1,610)