Multiple methods in custom script action?

Hi,
Can we use multiple methods in the custom script actions?
While working on the code i naturally created a method for a chunk of code that had to be repeated, while this works when running the code as a bot task in the code view, when i bring it into the recorder script as a custom action it does not.

I have it set up like this:

@CustomScriptAction(
input = ['variable1', 'variable2'],
output = 'result'
)

def CustomScript(){

//code with multiple method calls

}

def CustomMethod(String var1, String var2){

//a reusable chunk of code

}

Is there any way to make this work? It would be greatly appreciated as it would save me a lot of headache with debugging :sweat_smile:

at the present moment i only get this error message:
No signature of method: CustomScript_customScript.CustomMethod() is applicable for argument types: (java.lang.String, java.lang.String) values: [2, 437405067]

Hi Nicklas,

Multiple methods are not supported in Custom Actions now, only in bot tasks.

I’ve moved this topic to Feature Requests category. At the top of the page, you can vote for this feature to be implemented.