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

Parsing HTTP Response Body

How do you parse the response body from an HTTP POST to extract a string from json?

 

I send a HTTP POST to an api from Random.ORG to generate a random string.  

 

I get the response successfully.  This is the response body:

 

 

{ 
"jsonrpc":"2.0",
"result":{
"random":{
"data":[
"48588608"
],
"completionTime":"2016-12-16 03:28:36Z"
},
"bitsUsed":27,
"bitsLeft":249460,
"requestsLeft":980,
"advisoryDelay":230
},
"id":32400
}

 

I want to extract the value 48588608 from result/random/data.

 

I am using Mcrosoft Flow and want to use this string in the next step of the Flow, to send in an email, for example.

 

Any guidance?

2 REPLIES 2
Kemedia
Frequent Visitor

Parse JSON

How do you parse json to get the string from a HTTP POST.

 

I am working with the following response body:

 

Status Code: 200
Body: {"jsonrpc":"2.0","result":{"random":{"data":["48588608"],"completionTime":"2016-12-16 03:28:36Z"},"bitsUsed":27,"bitsLeft":249460,"requestsLeft":980,"advisoryDelay":230},"id":32400}

 

I want to extract the value 48588608 from result/random/data.

 

I am using Mcrosoft Flow and want to uise this string in an email, for example.

 

Would a Compose action wrk?  What would be the synatx to extract the data?

 

 

 

Community Support
Community Support

Re: Parsing HTTP Response Body

Hi @Kemedia,

 

I am not very familar with HTTP functions, have you tried the Compose in Microsoft Flow? What is the output result of the HTTP post body?

Maybe the following article would be helpful:

Calling Microsoft Flow from your application

Extend your web site or app with Microsoft Flow

Please post back if you need any further assistance.

A notice: I found your another thread at the PowerApps forum, and merged it here.

Regards

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Users online (8,479)