Skip to main content

Arguments

Introduction

By utilizing arguments, you can supply your Function with specific data. For example, this enables you to pass along values from previous actions and triggers in a given Flow to your custom function.

Functions Arguments

Create an Argument

  1. Create a new argument by simply clicking +Add new Argument

  2. Choose a name for your argument

    • Argument names can't contain special characters or spaces
  3. Choose a type

    • Types will validate the passed input

    Available types are:​

    • string​
    • integer​
    • float​
    • map​
    • list

Passing Arguments from a Flow

  1. Open a Flow.​
  2. Select the Run Function action
  3. Set a value for each of your arguments
    • You can make use of available Variables
    • Make sure the values match your selected argument types

Functions Pass Arguments

Your arguments will now be passed to your function.

Access an Argument

You can access arguments passed to your Function by simply entering their name.

return first_name

Example output:

John