Messages

Get Email Count

This activity counts how many mails there are in an inbox of the indicated account. Using OAuth you should fill in the Emailbox Name if you want to reach another mailbox with granted privileges (e.g. a shared mailbox)

NOTE: we recommend using IMAP protocol because of some limitations on POP3 protocol (Wizlink may ends in fail during getting emails, when the checkbox Delete Source Message is on and you use Microsoft - because POP3 protocol actually deletes mail from server only after clean disconnection, so Wizlink has to disconnect and reconnect, and Microsoft forbides connecting for some time after 20 or so reconnecting action).

NOTE: the activity works properly as long as no other program nor human uses the same mailbox as Wizlink.

mess_email_count02
Parameter nameParameter TypeIn/OutDescription
Alternative Scenario If FailedBooleanInputcheckbox; default is "on"
Application IDStringInputstring expression from Azure Active Directory (applies to Microsoft services) or Google Cloud (applies to Google services) obtained after the application registration process
Use OAuthBooleanInputcheckbox; default is "off"
TimeoutInt32Inputset time in seconds to connect to email server; if the connection fails - the activity will return "false"
Tenant IDStringInputstring expression from Azure Active Directory obtained after the application registration process
ServerAddressStringInputaddress of e-mail server the robot logs on to
ProviderDropdownInputselect the appropriate option from the dropdown list
ProtocolDropdownInputselect the appropriate option from the dropdown list
PortInt32Inputnumber of port
PasswordStringInputpassword (string expression)
LoginStringInputlogin
EncryptionMethodDropdownInputselect the appropriate option from the dropdown list
Emailbox NameStringInput(optional) name of the mailbox in a form of email address (local part, symbol "@" and domain)
DisplayNameLiteralInputyou can change the name of activity for greater clarity of the scenario
Client SecretStringInputstring expression from Google Cloud obtained after the application registration process
Emails CountInt32Outputnumber of mails in the inbox
ResultBooleanOutputreturns the Boolean value: it will return True if no error is in activity, otherwise it will return False
Result CodeInt32OutputResult Code will return 0 if there is no error in activity, otherwise in most cases it will return 1, the extended result code will show only in several chosen activities