Building your first custom Flow part

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:

  1. Go to Design and then Flow parts:
    Flow parts

  2. Click the Add button to add a new Flow part:
    Add button

  3. 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:
    New flow part

  4. Name your Flow part Send notification email.

  5. Now enter Add mode by clicking the Add button:
    Add mode

  6. The Button will turn blue to indicate that Add mode is active.

  7. Start by selecting the Starting point which currently says No inputs:
    Inputs starting point

  8. You will now see two square Add buttons, one to add an Input and one to add a Step to the flow.

  9. Add an Input by clicking the square Add button under the highlighted No inputs text:
    Add input

  10. In the dialog, select Texts and then E-mail address to make the Input an email address.

  11. When asked whether it should be a List or a single email, choose One e-mail.

  12. Name the Input To address. You have now got a Flow part with a single Input, named To address, of type E-mail address:
    E-mail address input

  13. Now press the Add button at the end of the arrow to add a Step to your Flow part:
    Add step

  14. From the list of actions, choose Send e-mail:
    Send e-mail step

  15. In the next Step you can type an email. Let’s keep it simple and type: This is a notification.

  16. Choose to use A specific subject.

  17. Type in a subject, for example New notification.

  18. Choose to send the notfication to A value or list of values from the Flow part.

  19. 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:
    Select the input

  20. Skip the CC or BCC Step.

  21. Choose to send the email from A specific address and type your own email address for example.

  22. Name the action Send notification.

  23. Now click the Add button after your newly created action:
    Add button

  24. Choose the option to End the Flow part after Send notification.

  25. Click the main Add button again to exit Add mode:
    Exit add mode

  26. Go back to the list of Flow parts by clicking the Back button:
    Back button

  27. Your Flow part is now ready to be used!
    Flow part overview

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.