ext_benp
2 years agoNew Contributor
Writing to Pipeline Parameters within Pipeline
Is it possible to set Pipeline Parameters within a Pipeline - e.g. from a Mapper. To be clear I don't want to read a Pipeline Parameter I want to set it.
I would like to set a Pipeline Parameter to contain a business identifier, e.g. Invoice ID, or Employee ID etc. and from here, it may be possible to provide some sort of Audit capability.
jfpelletier - assuming this input document:
{"ids":["r4ige6rwgvnr","4nkmdoijydfj9","6ashbd99w3"]}
Configure a Mapper expression as follows:
Should provide the desired output. Take a look at the Array.map() documentation for description. The Javascript documentation linked in the SnapLogic documentation has some excellent details and examples. Basically the statement shown above is turning each string value in the array to an object.