gg433
7 years agoNew Contributor III
Options for triggered task
Does anyone know of a way to trigger a pipeline task without sending the Authorization header? Can you pass the token in a parameter? What other options are there?
What type of snap can I use to receive the x-www-form-urlencoded data posting to the pipeline?
What type of snap can I use to receive the x-www-form-urlencoded data posting to the pipeline?
A Mapper Snap with a Binary Input View
To convert the request body in x-www-form-urlencoded-format to JSON, the following expression could be used:
Base64.decode(Base64.encode($content)).split("&").map(x => x.split("=")).toObject(x => x[0], x => x[1])
with Target Path $
(some improvement could be made with URL decoding the key and value values)
This is obviously a very technical solution so I’d like to look into simplifying it significantly.