12-18-2023 01:45 PM
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
Solved! Go to Solution.
12-19-2023 01:28 AM - edited 12-19-2023 02:16 AM
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.
12-21-2023 03:44 AM
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:
And also on "webhook.site" results:
So basically I need to use the above values from "Query strings" and "Forms values".
Thanks for any help! 🙂
Kind regards,
JF