When your application is past the level of only registering data, you will quickly find the need for more complex processes. This is where custom flow parts come into play.
How to build a custom flow part
Just like the built-in flow parts, you can use custom flow parts in automation flows and user flows. Follow the steps below to create a very simple custom flow part that sends a notification email to an address you provide it as an input:
Go to design and then flow parts:
Click the add button to add a new flow part:
A new, empty flow part named New flow part is created and opened. To rename the flow part, click the edit icon next to the flow part name:
Name your flow part Send notification email.
Now enter add mode by clicking the add button:
The button will turn blue to indicate that add mode is active.
Start by selecting the starting point which currently says no inputs:
You will now see two square add buttons, one to add an input and one to add a step to the flow.
Add an input by clicking the square add button under the highlighted No inputs text:
In the dialog, select Texts and then E-mail address to make the input an email address.
When asked whether it should be a list or a single email, choose One e-mail.
Name the input To address. You have now got a flow part with a single input, named To address, of type E-mail address:
Now press the add button at the end of the arrow to add a step to your flow part:
From the list of actions, choose Send e-mail:
In the next step you can type an email. Let’s keep it simple and type: This is a notification.
Choose to use A specific subject.
Type in a subject, for example New notification.
Choose to send the notfication to A value or list of values from the flow part.
Triggre now shows you a list with all the available values you can use. In this flow part, only one value is compatible, the To address:
Skip the CC or BCC step.
Choose to send the email from A specific address and type your own email address for example.
Don’t add any attachments.
Name the action Send notification.
Now click the add button after your newly created action:
Choose the option to End the flow part after Send notification.
Click the main add button again to exit add mode:
Go back to the list of flow parts by clicking the back button:
Your flow part is now ready to be used!
Tip: Always name your flow part and actions in it after the action performed, e.g. ‘Generate offer document’ or ‘Calculate shipment costs’ as this makes it easiest to read your flows.