TaskInitiator
Props#
prop | type | required | Description |
---|---|---|---|
onTaskSuccess | ({ taskData, resultData }) => Promise<void> | false | A callback to call when a task executes successfully. Available in the callback are the submitted properties taskData of TaskData shape and the action's execution resultData . |
onTaskError | ({ taskData, error }) => Promise<void> | false | A callback to call when a task fails to execute. Available in the callback are the original taskData and the thrown error . |
prefilled | object | false | Data that can be prefilled for the trigger. Please see the section on creating automations. |
variableMenuActivator | string | false | Customizes the text that triggers variable list in text editor. |
Props#
prop | type | required | Description |
---|---|---|---|
onTaskSuccess | ({ taskData, resultData }) => Promise<void> | false | A callback to call when a task executes successfully. Available in the callback are the submitted properties taskData of TaskData shape and the action's execution resultData . |
onTaskError | ({ taskData, error }) => Promise<void> | false | A callback to call when a task fails to execute. Available in the callback are the original taskData and the thrown error . |
prefilled | object | false | Data that can be prefilled for the trigger. Please see the section on creating automations. |
variableMenuActivator | string | false | Customizes the text that triggers variable list in text editor. |