cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
New Member

"When a HTTP request is received"-Unable to get array of values sent as parameter in URL

Hi, I am a newbie on Power Automate. I have created a flow which should receive an array of values for "name" and "mobile" as parameters in the http request.

BadariPrasad_1-1596100490732.png

 

The HTTP GET URL is "https://prod-18.southeastasia.logic.azure.com:443/workflows/7e082f2ea3ae4862aba63c854116c4dd/trigger..."

 

When I use any of the following requests the OUTPUT shows NULL and does not show the parameter values sent.

 

https://prod-18.southeastasia.logic.azure.com:443/workflows/7e082f2ea3ae4862aba63c854116c4dd/trigger...

 

https://prod-18.southeastasia.logic.azure.com:443/workflows/7e082f2ea3ae4862aba63c854116c4dd/trigger...

 

https://prod-18.southeastasia.logic.azure.com:443/workflows/7e082f2ea3ae4862aba63c854116c4dd/trigger...

 

What am I doing wrong? How to I get the array of values from the parameters?

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Hello @BadariPrasad 

The URL query parameters that you provide to the Flow will end up in the "queries" property.

Use the expression "triggerOutputs()?['queries']" to see your parameters.

 

Your parameters "name[1]" and "name[2]" will end up as "triggerOutputs()?['queries']?['name[1]']" and "triggerOutputs()?['queries']?['name[1]']" respectively.

 

Give it a try 🙂

Kind regards, John

View solution in original post

2 REPLIES 2
Super User
Super User

Hello @BadariPrasad 

The URL query parameters that you provide to the Flow will end up in the "queries" property.

Use the expression "triggerOutputs()?['queries']" to see your parameters.

 

Your parameters "name[1]" and "name[2]" will end up as "triggerOutputs()?['queries']?['name[1]']" and "triggerOutputs()?['queries']?['name[1]']" respectively.

 

Give it a try 🙂

Kind regards, John

View solution in original post

Thanks a lot @JohnAageAnders for the pointer which led me to resolve it. I improved it a bit more by changing to HTTP POST using JSON in the body. 

 

 

 

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (43,631)