crowhill
crowhill

Reputation: 2558

Arguments to a Logic App via HTTP GET trigger

In a Logic App, is it possible to send arguments via the URL?

The first step in the app is a "When a HTTP request is received" trigger that generates a URL. For example:

https://prod-28.northcentralus.logic.azure.com:443/workflows/xxx/triggers/manual/paths/invoke?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=xxx

If a user to adds an argument, say &country, can the application read it, or is it better to pass arguments like this via the body? It would look something like this:

https://prod-28.northcentralus.logic.azure.com:443/workflows/xxx/triggers/manual/paths/invoke?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=xxx

Bonus question: if the arguments should be passed in the body, when should a GET trigger be used in in a Logic App?

Upvotes: 3

Views: 6933

Answers (2)

user3998893
user3998893

Reputation: 13

I know this is an old post but with the queries parameter we can pass the query string parameters like shown below.

enter image description here

Upvotes: -1

eimajtrebor
eimajtrebor

Reputation: 153

Yes, you can send in a query string parameter such as appending the Logic App URL with &country=Iceland.

If you check the raw output produced by the "When a HTTP request is received" trigger then you will see the following object:

{
   "headers": { LIST_OF_HEADERS },
   "queries": {
       "country": "Iceland"
   }
}

The Queries object is available to use in other shapes within the Logic App.

Upvotes: 0

Related Questions