Mark As Unread in Zoho Mail
Table of Contents
Overview
The zoho.mail.markAsUnread task is used to mark an email as unread in Zoho Mail.
Syntax
<response> = zoho.mail.markAsUnread(<message_id>, <connection>);
where,
Params | Data type | Description |
<response> | KEY-VALUE | The response that represents the status of the executed task. |
<message_id> | NUMBER | The ID of the email that will be marked as unread. Note: You can get the parent_folder_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 unread in Zoho Mail.
response = zoho.mail.markAsUnread(6729326000000548039, "mail_oauth_connection");
where:
response
6729326000000548039
"mail_oauth_connection"
Response Format
Success Response
The success response will be returned in the following format:
{
"message":"Action markAsUnread is successful",
"status":"success"
}