Theme

Walkthroughs

7) Defining actions

Actions are defined in the “actions array in the doflo.jsonc file. An example can be found here:https://github.com/doflo-elements/flow-element-slack/blob/main/doflo.jsonc#L1402 If credentials are required for the action configuration it should also contain the “credentials” block. This will ensure the user selects a credential during element setup. Additionally, a list of properties should be configured in the same file if they are required by the action implementation. Implementation should be done in the filename that’s been configured in the doflo.jsonc files. The execution function should return a json object which can be accessed by subsequent elements. This data is also shown in the recent executions tab of the element. An example action implementation can be found here: https://github.com/doflo-elements/flow-element-slack/blob/main/remote/src/PostMessage.ts#L6
Previous
6) Signals