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 II
Super User II

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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Users online (12,642)