Check Email for Different Subjects

added on May 26, 2006 by Marjo Martinez (marjo.martinez@helpsystems.com)
Applies To: AutoMate 6, AutoMate 5

This task will check email using the "POP3 E-mail" action and populate the specified dataset with email variables. The dataset has been named mymail. When this action is run, it will list the available dataset variables which can be looped through. A "Loop Dataset" action is used to loop through the variables in the dataset created by the "POP3 E-mail" action. (For help on datasets, please refer to the AutoMate Help File. From the Contents tab, navigate to AutoMate -> Advanced -> Using Datasets)

The dataset used to check subjects of messages is "mymail.Subject." An IF conditional is used to evaluate mymail.Subject to see if the subject is test1. If it is, a message dialog is displayed. Another IF conditional is used to evaluate mymail.Subject again to see if the subject is test2. If it is, then another message dialog is displayed.

Note: In order for this sample to work properly, you wil need to modify the "POP3 E-mail" action's settings and send a few emails with the subject test1 and test2 to yourself before executing the task.

Download This Task (0.9kb) Check Email For Different Subjects.aml
Would you like to upload a Sample Task or Workflow to the User Resource Center? Click here!



More Sample Tasks and Workflows

DDE Sample (task) 2/24/17Leonard Amabile

The attached task demonstrates DDE Execute, DDE Poke and DDE Request. The task assumes that Excel is running with a worksheet named Sheet1. DDE Execute: Maximizes the Excel spreadsheet. DDE Poke: Will write the number 7 in row 1 column 1 of Sheet1. DDE Request: Will grab the value from row 1 column 1 of Sheet1 and populate variable varTest.

Workflow Loop Sample (workflow) 8/22/16Leonard Amabile

This sample demonstrates how a workflow loops through a shared dataset using the evaluation object and NO loops within the tasks.

Inline Padding Sample (task) 8/22/16Leonard Amabile

This sample demonstrates how to pad a string inline with leading or trailing spaces.

Updating SharePoint list issue 5/10/16Erez Ronen

Hi, I'm tring to update SharePoint list anf got the following error : Error message: SharePoint failed (Error : The underlying connection was closed: An unexpected error occurred on a receive.) The automate version is 9.0.4.5 (Premium + runtime) The failure step : <AMSHAREPOINT ACTIVITY="get_listitems" AM_RETRY="3" AM_RETRYDELAY="500" LIST="Agile_DMO_SAP" QUERY="<View><RowLimit>2</RowLimit></View>" RESULTDATASET="DSGetList" SITE="http://share5.mycompany.com/sites/ccs2/cma/operations" /> Please advise

Trigger, actually: 7 to 7 11/17/15Matt Tollerson

I need to create (a) trigger(s) to execute my task at different frequencies depending-upon the time of day. I want my task to trigger every 15 minutes from 7a.m. till 7p.m. and then only trigger every hour from 7p.m. till 7a.m. I also want it to not trigger on Saturday nor Sunday. From what I can tell: exceptions let me do that but then stop triggering alltogether. Please write me back if you have an idea. Thanks in advance, Matt T.

Split filename into two variables 5/15/15Valentineo McGowan

A task has a name of 'abc_123.txt' I would like the folder name to be the prefix of the filename prior to the "_" delimiter 'C:\abc'. File 123.txt will then be placed inside C:\abc\123.txt

Count Rows in TXT/CSV using Regular Expression 5/15/15Valentineo McGowan

I have a *.txt or *.csv containing column headers and X rows of data. Using RegEx the task simply counts the number of rows based on carriage returns. Great for csv files that have X amount of records and you simply need a total count of rows minus the headers.

Dataset to CSV File using Excel action 5/15/15Valentineo McGowan

How do I create a CSV file from a dataset without using Interactivity actions inside MS Excel, ie, 'File Save As.'? Here's how to create a CSV file in one step using a dataset with our 'Excel - Set cells' activity.

Dataset to CSV using ODS action 5/15/15Valentineo McGowan

How do I create a CSV file from a dataset without Microsoft Excel being present on my machine? Here's how to create a CSV file in one step using a dataset with our new 'ODS (OpenDocument Spreadsheet) - Set cells' activity.

Hide window 4/18/15Ali Zamani

Using this task, you can hide the windows that are active in the field of view. Posted by Younes Raeisi

 

Comments (3)

  1. 2/12/09 by David Nguyen
    Instead of POP3, can you use SNMP to read email, detect a download link, click on that link to download a file.
  2. 10/1/16 by Anonymous
    I'm trying this in AutoMate10. The example doesn't contain Certificate or Passphrase in Create Session, but this version does. Getting error message: The passphrase contains an unescaped percentage sign or syntax error in the embedded function. I have nothing in the Passphrase field, so there's no percentage sign. What goes in this field? Thanks.
  3. 10/2/16 by Leonard Amabile
    Unfortunately that is not enough information to be able to assist you. Please open a support ticket or post in the forums along with your task and complete error message. Once we are able to review the task and error message, we'll be able to point you in the right direction.
Please sign in to your account or your comment will be forever stored under "anonymous".
Include Code Snippet

Search the URC

Subscribe to Version History via RSS
Subscribe to Version History via RSS
Version Watcher

10.7.0 changelog
10.7.0 changelog
other versions downloads

Contribute

Subscribe to Latest Resources via RSS
Subscribe to Latest Resources via RSS
Latest Resources

show filter options

Subscribe to Forum Posts via RSS
Subscribe to Forum Posts via RSS
Forum Posts