Integrate Gmail with Asana through webMethods.io Integration

Overview

Learn how to set up an integration that sends a notification via Gmail to a specified email address about the completion of an Asana task with this step-by-step webMethods.io Integration workflow tutorial.

Prerequisite:

  1. Gmail account
  2. Asana account

Steps

  1. Login to your webMethods.io Integration tenant or sign up for a free trial if you’re new.
  2. Create a new project or choose an existing one.
  3. Go ahead and get started by creating a blank workflow. If you need a refresher on how to get to this point, this guide can be a great introduction.
  4. Click on the small setting icon on the Start step and choose the Asana trigger.

Select Task updated as a trigger and complete the authorization – connect webMethods.io Integration with your Asana account and choose the workspace and the project. Then add the Task Completed filter.

Click Save. You should see the test trigger window.

To test your trigger, you need to perform the trigger action. Open your Asana project page and mark one of your tasks as completed:

Go back to the webMethods.io Integration workflow and click Test. You should see the output data (the task information) from the trigger which webMethods.io Integration will use to configure and test the rest of the workflow. Click Done.

  1. Before we send the notification about the task completion, we want to make the JSON output data more readable. That is why, add the JSON to HTML connector to the canvas with the drag and drop feature. This automatically connects with the Asana trigger.

  1. Click on the small settings icon on the JSON to HTML connector, click Next.

To configure the action, you need to drag and drop the Trigger data from the Incoming data panel on the left to the JSON Data field:

Click Next and then Done.

  1. Now search for the Gmail connector and add it to the canvas with the drag and drop feature. This automatically connects with the JSON to HTML connector.

Click on the small settings icon on the Gmail connector, select Send an Email as action and complete the authorization – connect webMethods.io Integration with your Google account.

Click Next.

Now you can proceed with the action configuration – type the email address/es to which the email notification will be sent. Type the email subject – use the Incoming data panel to include task information received from the trigger output, for example

Task {{$trigger.task_name}} is marked as complete in {{$trigger.projects[0].name}} project

Set the Body type field to HTML and drag and drop the html output to the Body field.

You can now run the workflow using the play button in the right upper corner and review the result. If you have configured the workflow correctly, you should receive an email shortly.

Now every time a task is marked completed in your Asana project, an email notification via Gmail will be automatically sent. Please note that this may take some time.

  1. At the bottom-left corner of the screen you can find the Execution history of the workflow:

From here you can monitor the execution status and view error details if needed:

2 Likes