Calling Function from Custom Code with many parameters

Thanks. I’ll give it a try.

Never did figure out how to format the response into something I could use in a BPM custom code block using the above method but I did find a way to use the function widget inside of a loop using widgets to effectively do what I was trying to do in custom code. I set a variable, ran the function widget, used a custom code block to edit the row, incremented the indexer variable, then pointed it back to the condition block that checks if i < totalRows. Never thought to do that in a widget scenario but it works. Fun fun. It will be needed for the day that I can’t use custom code blocks anymore.
image

Functions return an object array.

So if you had:

Your return parameters would be:

var outputVar1 = response[0];
var outputVar2 = response[1];
//etc
6 Likes