Event-Based Workflows
Event-based workflows are the go-to choice when your actions depend on specific events. These types of workflows are triggered based on the events they’re mapped to.
Create Workflow
The events can be either within Swift apps or external apps triggered via webhooks. Here is how:
Click '+ Create Workflow' on the Workflows header.
A modal will pop up where it will ask for the following details:
Name: Enter a name for the workflow that best matches your business case.
Event Type: Select the event type (Event-Based).
Description: Provide a relevant description for your workflow.
Map to Events
Once your workflow is ready, head to any form of your application from where you want to execute your workflow.
Once your workflow is ready, navigate to the form in your application where you want to execute the workflow.
Select a Custom Button and check the “Enable Flow Builder” option. This will reveal a dropdown containing all your workflows. Select the workflow you want to trigger when this button is clicked.
Below the dropdown, you will see a label named “Click here to view selected workflow.” By clicking on this label, you will open a Workflow Viewer, which allows you to quickly view details and update your workflow directly from this interface.
Field Mapping
Field mapping allows you to pass dynamic field data to your workflow. You can create field mapping variables using the two text boxes shown on the screen. Enter a variable name that will be passed to your workflow and select its value using the @ feature. This feature lets you choose from all form fields and other relevant information dynamically, or you can also use a constant value.
Once you've created the field mapping, the variable will be passed to your workflow when the button is clicked.