ThingWorx Flow > Connectors Overview > System Connectors > Gmail > Gmail Triggers
  
Gmail Triggers
You can set a trigger for a specific workflow by selecting events from the trigger list.
Using Gmail Triggers
To use this trigger in your workflow, create a new event for the Gmail trigger, and then connect to the flow. To create a new event, do the following:
1. Place the pointer on the start icon , and then click or double-click . A list of triggers appears.
2. Select the Gmail trigger and then create a new event. The Gmail trigger configuration window opens.
* 
If a trigger is already created, select an existing trigger, and then click SAVE.
To create a new trigger, click Create a new event for Gmail, and then proceed with the steps further.
3. Edit the trigger label, if needed.
4. To add a new authorization, refer to the section Authorize Gmail in the Gmail connector topic.
* 
If you previously added an authorization for Gmail, select an authorization from the list.
5. In the Select Trigger list, select a trigger. A list of triggers with a description of what initiates each trigger follows:
New Email—A new email is received.
New Attachment—An email contains an attachment.
New Labeled Email—A received email is labeled within two days.
6. In the Search Text field, enter the search text to search for a specific email such as from:John or from:Maya. For more information, refer to the search operators section.
7. Select a label for which you want to set a trigger. If you select the label as Trash, the trigger fires off every time a new email is moved to a label named Trash in your Gmail account.
8. In the Custom Filters section, click ADD, and then enter the following details:
Input
Expected—The expected output.
Condition—Condition to apply on the filters such as equals, greater than, less than, contains, does not contain, matches, and so on.
Click ADD to set multiple custom filtering criteria.
For more information on custom filters, refer to the topic Adding Custom Filters.
9. Click SAVE.