cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
YetAnotherAdmin
Regular Visitor

"Request" Trigger with urlencoded Body?

Hello,

 

tl;dr: How can I use the Request Body JSON Schema to map a Request Trigger's response body when the response Content-Type is urlencoded ("From=%2B12345678901&ToCountry=US")?

 

My flow is basic at this point, it contains two tasks:

 

[Request]

    -> [Send an Email]

 

I'm having trouble retrieving the post parameters from the Request Trigger. The response body's Content-Type is application/x-www-form-urlencoded (so "From=%2B12345678901&ToCountry=US").

 

The schema is mapping the parameters as variables and I'm able to select them in the next step (Send an Email) but when the email is delivered the values are empty. Passing the Request Trigger's default "Body" variable into the email shows the entire urlencoded request body, so data is definitely being passed into the endpoint. I'm probably missing something very simple here. Can anyone point me in the right direction? Thank you in advance for any assistance.

 

Here is the JSON Body Schema I'm using:

 

{
	"type": "object",
	"properties":{
		"From": {
			"type": "string"
		},
		"ToCountry": {
			"type": "string"
		}
	}
}

 

tl;dr: How can I use the Request Body JSON Schema to map a Request Trigger's response body when the response Content-Type is urlencoded ("From=%2B12345678901&ToCountry=US")?

 

1 REPLY 1
ChristianAbata
Super User
Super User

hi @YetAnotherAdmin  now you can use parse json to get all the json content that you have as properties 

 

parse json.PNG



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (1,943)