I want to invoke a triggered task from another application. The other application is using POST method with name/value pairs in a querystring and the content type is x-www-form-urlencoded.
example: POST https://somesite.com?Emailfirstname.lastname@example.org&name=Bill
header Content-Type application/x-www-form-urlencoded
I have not had any luck getting a Triggered task to run using POST, only GET. Does anyone know where I can start to get this to work? How do I receive the name/value pairs? I can get it to work using pipeline parameters, but not when I use POST.
POST /api/1/rest/slsched/feed/xxxxxxx/projects/Gary_Gaetano/Lead%20Triggered%20Task?bearer_token=xxxxxxxxxxxxxx HTTP/1.1
Accept-Encoding: gzip, deflate
Pipeline execution failed or was aborted.
This one was successful:
GET /api/1/rest/slsched/feed/xxxxxxx/projects/Gary_Gaetano/Lead%20Triggered%20Task?bearer_token=xxxxxxxxxxxxxxx& First_Name=testfirst& Last_Name=testlast& Emailemail@example.com& Company=adp testing HTTP/1.1
My pipeline is one snap, a JSON generator that takes the pipeline parameters and responds back, one open input and one open output.