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
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.

Top Solution Authors
Users online (788)