Triggered Task to receive application/x-www-form-urlencoded
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?Email=test@test.com&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
Host: elastic.snaplogic.com:443
Content-Type: application/x-www-form-urlencoded
User-Agent: PostmanRuntime/7.19.0
Accept: /
Cache-Control: no-cache
Postman-Token: xxxxxxxxxxxxxxxxx
Host: elastic.snaplogic.com:443
Accept-Encoding: gzip, deflate
Content-Length: 95
Connection: keep-alive
cache-control: no-cache
First_Name=testfirst&Last_Name=testlast&Email=11062019758gg%40adptest.com&Company=adp+testing
Response:
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& Email=11062019618gg@adptest.com& Company=adp testing HTTP/1.1
Host: elastic.snaplogic.com:443
cache-control: no-cache
Postman-Token: xxxxxxxxxx
My pipeline is one snap, a JSON generator that takes the pipeline parameters and responds back, one open input and one open output.
Gary