I have created one flow from that I am sending some param to the function, how should I access the param inside the function? Here I am attaching the sample params I am sending from run_function to function.
Asked
Active
Viewed 27 times
1 Answers
1
If you have set up params to send from a Studio Flow to a Function via the widget, then you will be able to access the params on the event
object that is passed to your function.
For example, if you set a param named "CustomerName" in the Run Function widget you will access it like this:
exports.handler = function (context, event, callback) {
console.log(event.CustomerName);
callback(null, {});
}

philnash
- 70,667
- 10
- 60
- 88