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
Admin Admin
Admin

See this thread: Pipeline parameters


Diane Miller
Community Manager

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??