Process: Run code snippet

Execute a Python script file with parameters.

Help Centre › Functions & Formulas

Execute a Python script file with parameters.

Add it to a process

In the process designer, open the Add step tab. Find Run code snippet under Process, or type its name in the search box, and drag it onto the canvas.

Fields

FieldRequiredWhat it does
File pathYesEnter the file path, or use a variable such as {folders::desktop::path}\file.txt.
FunctionYesThe function name to call within the script file
VariableNoVariable to store the return value

What it gives back

  • {None}

See all Process steps.

Syntax

CODE(text)


The CODE function syntax has the following arguments:

  • Text Required. The text string from which you want to extract the numeric code of the first character.

Example

FormulaDescriptionResult
=CODE("A")Returns the numeric code for the character "A".65
=CODE("!")Returns the numeric code for the character "!".33
=CODE({variable})Assuming {variable} contains "Hello", this returns the numeric code for "H".72

Related functions

Get started

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or have your first automation working in 7 days.