Skip to main content
Feedback

Sending an email with a decision request

This worked example shows how the Email connector can be used to send an email containing clickable links that define the path that a recipient takes when progressing in a flow.

Before you begin

Before using this worked example, ensure that you are familiar with the following concepts and procedures:

About this worked example

This worked example is provided for illustration purposes only, to demonstrate the example steps and settings involved in using the Email connector to send an email from a flow that contains clickable links to allow a recipient to progress further in a flow.

This example uses the format of a simple approval request flow, where a user can select 'yes' or 'no' in an email, before being routed along the selected outcome path in the flow.

Installing the Email connector

The Email connector is first installed and configured to allow emails to be sent from within the flow. In this example, the is configured to send emails from a Gmail account, which requires additional configuration.

Setting up the flow

Once the Email connector is installed, a new flow is created and named "Email connector - send email with decision request".

To use the Email connector in the new flow, it is imported into the flow as a shared step. Shared steps are 'global' tenant steps that can be shared and re-used across multiple flows within a tenant. See Shared Steps.

In this example, the simple flow consists of 3 steps:

  • A message step is used to connect to the and send the email using a Send email with Decision Request message action. Step 1

  • 2 step steps provide different routes that a user can follow in the flow, depending on which link they click in the email.

    Each outcome from the message step is automatically converted into a clickable link in the body of the email, allowing the recipient to either 'Approve' or 'Reject' the request.

    • If the email recipient clicks on the 'Yes' email link, they are routed along the 'Approve' outcome to the 'Yes' step. Step 2

    • If the email recipient clicks on the 'No' email link, they are routed along the 'Reject' outcome to the 'No' step. Step 3

Setting up the flow

Message: A single Send Email with Decision Request message action is added to the message step, and the values created and configured as follows:

  • Body: A simple "Hello. This is the body of the email." message is entered.

  • HTML Body: A simple "Hello. This is the body of the email." message is entered.

  • From: A contact object value containing the Gmail email address set up for the Email is selected.

  • Subject: A simple "This is the subject of the email." message is entered.

  • To: A contact object value containing the recipient email address(es) is selected.

Step (Approve): A simple "This is approved." message is entered into the preentation step.

Step (Reject): A simple "This is rejected." message is entered into the presentation step.

Running the flow and sending the email

When the flow is run:

  • The message action is performed, and the email is sent to the recipient(s).

  • The recipient(s) receive an email using the body and subject values that were set up in the message action. At the bottom of the email the outcomes are displayed as clickable links.

    The recipients email

  • When a recipient clicks a link in the email, the flow opens in a web browser and is routed along the chosen link outcome to display the appropriate step. For example, if a recipient clicks 'Approve', they are directed to the 'Approve' presentation step.

On this Page