Mark As Read in Zoho Mail
Table of Contents
Note: This task is applicable to all Zoho services, except Zoho Creator.
Overview
The zoho.mail.markAsRead task is used to mark an email as read in Zoho Mail.
Syntax
<response> = zoho.mail.markAsRead(<message_id>, <connection>);
where:
Params | Data type | Description |
<response> | KEY-VLAUE | The response returned that represents the status of the executed task. |
<message_id> | NUMBER | The ID of the email that will be marked as read. Note: You can get the message_id from the Zoho Mail URL. The URL is in the following format: |
<connection> | TEXT | The link name of the connection. Note:
|
Example
The following script marks the specified email as read in Zoho Mail:
response = zoho.mail.markAsRead(6729326000000548039, "mail_oauth_connection");
where:
response
The KEY-VALUE response that represents the status of the executed task.
6729326000000548039
The NUMBER that represents the ID of the message that will be marked as read.
"mail_oauth_connection"
The TEXT that represents the link name of Zoho Mail oauth connection.
Response
Success Response
- The success response will be returned in the following format:
{
"message":"Action markAsRead is successful",
"status":"success"
}