Forum Discussion
If you have an error pipeline defined for your base pipeline, then I believe it will always run (and wait for error data) when your base pipeline runs, not only run when there is actually an error. If you have an error path on a snap, then it should only have data passed that way when errors occur.
- bojanvelevski4 years agoValued Contributor
Hey @jpsheff,
This can be achieved by using the .reduce() function. After you transform the parameter to an object field, use the following expression:
$parameters.reduce((acc,curr)=> acc.replaceAll(curr.name,curr.value),$string1)
Here’s a pipeline with the exact samples you provided, that does the transformation:
Replace string values from Array_2022_02_22.slp (5.3 KB)
I would suggest not to pass the JSON object as a parameter, if possible.
Regards,
Bojan
Related Content
- 11 months ago
- 2 years ago
- 12 months ago