Is it possible to pass the same parameter name multiple times with different values in a logic app HTTP request?

Vivek Komarla Bhaskar 911 Reputation points
2024-03-25T16:52:37.29+00:00

Is it possible to pass the same parameter name multiple times with different values in a logic app HTTP request? Attempting to do this didn't work, after saving the app with duplicated parameter names (with different values) they just disappeared and only the last parameter name and value remained.

This is exactly what I'm trying to achieve using Logic App but I could:

Screenshot 2024-03-25 at 16.43.01

If using above is not possible is it possible to achieve below using Logic App?

Screenshot 2024-03-25 at 16.51.30

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,846 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Sonny Gillissen 3,271 Reputation points
    2024-03-30T20:19:46.7333333+00:00

    Hi Vivek Komarla Bhaskar ,

    Thank you for reaching out on Microsoft Q&A!

    Due to the native JSON way of working in Azure Logic Apps it is not possible to define the same parameter multiple times with different amounts, as only one attribute “survives” when the JSON is parsed as a JSON cannot have the same attribute twice.

    However, it is possible to set one parameter as an object or array (depending on your requirement) which can hold multiple values as attributes within the parameter.

    You can then use the parameter value then as every object, like

    parameter()['attribute1']

    Please click “Accept answer” if you find this helpful. Feel free to drop additional queries in the comments below!

    Kind regards,

    Sonny


  2. Jake G 0 Reputation points
    2024-04-12T21:14:45.0833333+00:00

    I was able to get this working in the generally available interface (new) by passing in my query parameters as part of the request URI. For your example, it would look like: "https://api.stripe.com/v1/reporting/report_runs?parameters[columns[]]=America/Los_Angeles&parameters[columns[]]=created&parameters[columns[]]=reporting&parameters[columns[]]=net"

    User's image

    Here's the Results view of my own test showing that it didn't truncate like it does when you're using "Queries" in the GUI. (Labels.Include is the key which needs multiple values)User's image

    0 comments No comments