Actions
Configuration for custom tasks that can be triggered by content editors.
Actions are automation or workflow tasks that can be triggered by users.
Custom Actions
These actions are defined on the main configuration object. (Model and field objects should be applied to schema definitions or extensions within the models
property.)
actions
Defines a bulk or global custom action.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Action Properties
Each action has a number of properties that can be used to configure it. They are documented below.
name
Unique name for the action. Used as as the default label for the trigger button.
type
Tells Netlify Create which type of action should be run. See the feature guide for more information on identifying the appropriate action to use.
run
Function to run when the action is triggered by an editor.
label
Display label for the trigger button.
icon
Icon to show to the left of the trigger button. If not defined, no icon is shown.
inputFields
Fields presented to the user when triggering the action. The value for the fields are available as the inputData
object on the arguments sent to the run
function.
state
Informs Netlify Create of the state of the action, which affects the appearance of the trigger button in the visual editor. This is useful for long-running tasks.