Hey @ShlomiGani ,
what is it that you need to split and what results do you need. For example, in this short Python code for a custom code action, we use an input field (assuming it is a string) and split it at spaces. The result then would be a list. So if the input string is:
"Never gonna give you up Never gonna let you down"
The result would be:
['Never', 'gonna', 'give', 'you', 'up', 'Never', 'gonna', 'let', 'you', 'down']
Here is the code:
def main(event):
input_string = event.get("inputFields").get("input_string")
output_list = input_string.split(" ")
return {"outputFields": {"output": output_list}}
But I assume there might be more to it depending on what your input data is and what output you expect.
Cheers,
Chriso