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.
Create an Argument
-
Create a new argument by simply clicking
+Add new Argument
-
Choose a name for your argument
- Argument names can't contain special characters or spaces
-
Choose a type
- Types will validate the passed input
Available types are:
- string
- integer
- float
- map
- list
Passing Arguments from a Flow
- Open a Flow.
- Select the
Run Function
action - Set a value for each of your arguments
- You can make use of available Variables
- Make sure the values match your selected argument types
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