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.
Parameter name | Parameter Type | In/Out | Description |
---|---|---|---|
Alternative Scenario If Failed | Boolean | Input | checkbox; default is "on" |
Application ID | String | Input | string expression from Azure Active Directory (applies to Microsoft services) or Google Cloud (applies to Google services) obtained after the application registration process |
Use OAuth | Boolean | Input | checkbox; default is "off" |
Timeout | Int32 | Input | set time in seconds to connect to email server; if the connection fails - the activity will return "false" |
Tenant ID | String | Input | string expression from Azure Active Directory obtained after the application registration process |
ServerAddress | String | Input | address of e-mail server the robot logs on to |
Provider | Dropdown | Input | select the appropriate option from the dropdown list |
Protocol | Dropdown | Input | select the appropriate option from the dropdown list |
Port | Int32 | Input | number of port |
Password | String | Input | password (string expression) |
Login | String | Input | login |
EncryptionMethod | Dropdown | Input | select the appropriate option from the dropdown list |
Emailbox Name | String | Input | (optional) name of the mailbox in a form of email address (local part, symbol "@" and domain) |
DisplayName | Literal | Input | you can change the name of activity for greater clarity of the scenario |
Client Secret | String | Input | string expression from Google Cloud obtained after the application registration process |
Emails Count | Int32 | Output | number of mails in the inbox |
Result | Boolean | Output | returns the Boolean value: it will return True if no error is in activity, otherwise it will return False |
Result Code | Int32 | Output | Result 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 |