Mark Gmail Email as Read or Unread
You can select this activity to change the read status of a Gmail email.
This table lists the properties for the activity.
| Property Type | Property Name | Data Type | Description |
|---|---|---|---|
| Input | InArgument<Mail> | The email message to update. Use a mail object obtained from a previous Gmail-based email activity. This field is mandatory. | |
| Input | Mark as Read | Boolean | Set the value to True to mark the email as read. Set the value to False to mark the email as unread. The default value is set to True. |
| Common | Continue on error | Boolean | Set the value to True for continuing the workflow even if the activity fails. The default value is set to True. |
| Output | Response code | OutArgument<Int32> | Response code for the activity. |
Activity behavior
Review this behavior of the activity when updating the read status of messages:
- If the value in the Mark as Read field is set to True, the activity marks the message as read by removing the UNREAD label.
- If the value in the Mark as Read is set to False, the activity marks the message as unread by adding the UNREAD label.
- If the operation is completed successfully, the Response Code is 200.
- If an error occurs, the Response Code is 500.