Email

Get Email Count

Activity checks the inbox of an indicated address and returns the number of emails as Emails Count.

To use the activity fill in the correct Login/Sender Email and Password for the email you want to access, as well as Protocol, Encryption method, Server Address and Port according to the email server’s settings.

Fill in Special Folders to access other mailbox folder than default inbox (see more information below)

To access a shared mailbox, provide the name in the Malibox Name field in addition to logging in with regular credentials.

getemail1
getemail2

Special Folders

Only messages in Inbox are counted by default.

To count messages in other (custom or default) folders provide folder name(s).

The folder names are case sensitive. For nested folders, access them as "My Folder/My Subfolder"

 

NOTE: Default mailbox folders can have different display names depending on language and email provider, but will need to be accessed with following keywords:

        • "Sent" - outgoing mail
        • "Drafts" - unfinished messages
        • "Junk" - spam, unwanted messages
        • "Trash" - deleted mail
Special Folders tooltip

Google & Microsoft OAuth

To use the activity with a Gmail or Microsoft email follow the respective manual for setting up the account for an external application’s access.

oauth1
oauth2

NOTE: It's recommended that the email address is reserved for robot use.

NameTypeCategoryDescription
Alternative Scenario If FailedBooleanMisccheckbox; default is "on"
Application IDStringOAuthstring expression from Azure Active Directory (applies to Microsoft services) or Google Cloud (applies to Google services) obtained after the application registration process
Client SecretStringOAuthstring expression from Google Cloud obtained after the application registration process
Display NameLiteralMiscchanges display name of the activity
Emails CountInt32Outputnumber of emails in inbox
Encryption MethodDropdownSettingsselect encryption method from the dropdown list
Exclude from Transaction CheckBooleanMisccheckbox; default is "off"
Login/Sender EmailStringSettingslogin
Mailbox NameStringSettingsname of shared mailbox
PasswordStringSettingspassword (string expression)
PortInt32Settingsport number
ProtocolDropdownSettingsselect the appropriate option from the dropdown list
ProviderDropdownOAuthselect email provider from the dropdown list
ResultBooleanOutputreturns a Boolean value. True if no error in activity, otherwise will return False
Result CodeInt32OutputResult Code will return 0 if there is no error in activity, otherwise in most cases will return 1. See the table of Extended Result Codes for more info
Server AddressStringSettingsaddress of email server the robot logs in to
Tenant IDStringOAuthstring expression from Azure Active Directory obtained after the application registration process
Timeout [s]Int32Settingsset time in seconds to connect to email server
Use OAuthBooleanOAuthcheckbox; default is "off"
Special FoldersStringInputadditional mailbox folder(s) to check