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

Is there anything different in using custom code for calling a function in Standard vs In-Transaction data directive? I’ve got the function working with custom code like you state in a standard dd, but can’t get the same to work in-transaction. In-transaction doesn’t have a call function widget which is why I have been looking to use custom code.

BPM Error: BPM runtime caught an unexpected exception of ‘EntityException’ type.
See more info in the Inner Exception section of Exception Details.

This is not near enough information to help you. Please start a new thread with details.