cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Super User II
Super User II

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

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

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

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

Highlighted
New Member

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

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (6,961)