Skip to content

Run Custom Python Code

Execute a Python snippet. Variables are supported two ways: {{{name}}} markers are replaced before running, and the live 'variables' dict is also available to read/write. Set 'result' to store an output.

Programs & ProcessesRunCustomCode

Overview

Run Custom Python Code is a no-code automation step in the Programs & Processes category of AutoFlowRPA. It performs its action in a single step when the workflow reaches it. You can configure 2 parameter(s) to control exactly how it behaves. It is one of 369 commands you can drag into a workflow in the visual builder — no scripting required.

What it does

Execute a Python snippet. Variables are supported two ways: {{{name}}} markers are replaced before running, and the live 'variables' dict is also available to read/write. Set 'result' to store an output.

Parameters

ParameterTypeRequiredDefaultDescription
Python codemultiline
RequiredVariables are supported: {{{name}}} markers are replaced with their value before running. The 'variables' dict is also available, e.g. variables['a'].
Example: result = {{{a}}} + {{{b}}}
Supports variables
Store 'result' invariable
Optional
Example: result

How to use Run Custom Python Code

  1. 1

    Open AutoFlowRPA and drag the Run Custom Python Code command from the Programs & Processes group onto the canvas.

  2. 2

    Set its parameters in the side panel — Run Custom Python Code has 2 configurable field(s).

  3. 3

    Connect it into your workflow and press Run. Everything executes locally on your machine.

Frequently asked questions

What does the Run Custom Python Code command do?

Execute a Python snippet. Variables are supported two ways: {{{name}}} markers are replaced before running, and the live 'variables' dict is also available to read/write. Set 'result' to store an output.

Which group does the Run Custom Python Code command belong to?

Run Custom Python Code is part of the Programs & Processes group. AutoFlowRPA ships with 369+ ready-made commands you can combine without code.

Does the Run Custom Python Code command take any parameters?

Yes — Run Custom Python Code has 2 configurable field(s), all editable in the visual node editor.

More Programs & Processes commands

Ready to automate your busywork?

Start your free 30-day trial today. No credit card, no commitment.