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
Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (1,922)