cancel
Showing results for 
Search instead for 
Did you mean: 

Where can I get the query parameters when using a triggered task?

jfpelletier
Contributor

Hello all,

I created a triggered task, and the system triggering the task sends a couple of query parameters that I need to use for the task.

Can someone tell me how I can get the values passed as query strings when the task was triggered by the URL?

Thanks a lot in advance!

JF

1 ACCEPTED SOLUTION

SpiroTaleski
Valued Contributor

@jfpelletier 

1) You can define the parameters(the ones that are expected to be sent by the system) in the pipeline properties, and access the parameters with "_" and the name of the parameter. ex: _param1. 

2) You can access all the parameters with the QUERY_STRING argument. 

      ex: _QUERY_STRING

      The result is string containing all the parameters sent by the system. ex: "test=value&test1=value1". 

      So, probably you will need to utilize some of the string functions in order to get/extract the parameters. 

 

 

View solution in original post

10 REPLIES 10

Hello @SpiroTaleski,

I did that already (write the JSON and analyze its validity) using the "Record Replay" snap, and I also used the results that I observed in "webhook.site". That's how I found out first about the JSON with all the double quote characters ( " ) that have been escaped by a backslash ( \" ) making the JSON not valid.

You can see in the screenshot below:

jfpelletier_0-1703158503355.png

And also on "webhook.site" results:

jfpelletier_1-1703158952772.png

So basically I need to use the above values from "Query strings" and "Forms values".

Thanks for any help! 🙂

Kind regards,

JF