Props
Learn about different types of properties used in triggers / actions
Properties are used in actions and triggers to collect information from the user. They are also displayed to the user for input. Here are some commonly used properties:
Basic Properties
These properties collect basic information from the user.
Short Text
This property collects a short text input from the user.
Example:
Long Text
This property collects a long text input from the user.
Example:
Checkbox
This property presents a checkbox for the user to select or deselect.
Example:
Markdown
This property displays a markdown snippet to the user, useful for documentation or instructions. It includes a variant
option to style the markdown, using the MarkdownVariant
enum:
- BORDERLESS: For a minimalistic, no-border layout.
- INFO: Displays informational messages.
- WARNING: Alerts the user to cautionary information.
- TIP: Highlights helpful tips or suggestions.
The default value for variant
is INFO.
Example:
If you want to show a webhook url to the user, use {{ webhookUrl }}
in the
markdown snippet.
DateTime
This property collects a date and time from the user.
Example:
Number
This property collects a numeric input from the user.
Example:
Static Dropdown
This property presents a dropdown menu with predefined options.
Example:
Static Multiple Dropdown
This property presents a dropdown menu with multiple selection options.
Example:
JSON
This property collects JSON data from the user.
Example:
Dictionary
This property collects key-value pairs from the user.
Example:
File
This property collects a file from the user, either by providing a URL or uploading a file.
Example:
Array of Strings
This property collects an array of strings from the user.
Example:
Array of Fields
This property collects an array of objects from the user.
Example:
Dynamic Data Properties
These properties provide more advanced options for collecting user input.
Dropdown
This property allows for dynamically loaded options based on the user’s input.
Example:
When accessing the Piece auth, be sure to use exactly auth
as it is
hardcoded. However, for other properties, use their respective names.
Multi-Select Dropdown
This property allows for multiple selections from dynamically loaded options.
Example:
When accessing the Piece auth, be sure to use exactly auth
as it is
hardcoded. However, for other properties, use their respective names.
Dynamic Properties
This property is used to construct forms dynamically based on API responses or user input.
Example: