cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Pipeline Parameter in Mapper Snap

jhagist
New Contributor III

I am using a mapper snap to extract data from a json schema. This is the code from the expression

{id:$id}.extend($.fieldValues.map (elem => [elem.id, elem.type, elem.value]))

What I want to do is place this in a pipeline parameter (so can change this equation from the config file).

I can’t figure out the expression syntax. Here is a screenshot of my latest failure. 🙁

2018-07-12_10-53-43

7 REPLIES 7

dmiller
Former Employee

See this thread: Pipeline parameters


Diane Miller

jhagist
New Contributor III

Thanks for this. I am currently using the pipeline parameter to pass this information.

My question is really how to write the syntax.

I have put the function (that I need to variablize) into the Pipeline parameter _field1 but I can’t get it to run

you shouldn’t need parenthesis around the name. “_field1” should work.

When I try it without the parenthesis around the name. “_field1” All I get is the parameter as a string.

b5285fc4a4d4d0827f31d74f64719f666e992b16.png

Snap,

e67e80930bc4cad46c12c8f4cf9a2e96561add1d.png

Any ideas??