I have a JavaScript transformation where I take a csv and load it into db using MLCP. Say that my function accepts content and context. I have 2 other parameters that I need to pass through MLCP so that I can use it in the transformation. Can I use -transform_param "my-value" in this case? How do I write the function?
I am hard coding the values as of now instead of passing them as a parameter.
function test(content, context, param1, param2)
{
//use param1 and param2
}
//export
Is this the right implementation?
Expectation: Use the transformation to use on other documents. Reality: Hard coding the values to be used.