Remove flag
Table of ContentsUp
Note:
- This task is applicable to all Zoho services, except Zoho Creator.
- Each time the zoho.mail.removeFlag integration task is executed, it triggers an API request in the back-end. This call is deducted from the external calls limit available for the service from which the task is executed, based on your pricing plan.
- Only actual executions that receive a response (whether success or failure) are counted, not the number of times the task appears in the script. For example, if zoho.mail.removeFlag integration task is placed inside a for each task that iterates five times, the number of external calls consumed will be five, even though the task appears only once in the script.
Overview
The zoho.mail.removeFlag task is used to remove flag from previously flagged emails in Zoho Mail.
Syntax
<response> = zoho.mail.removeFlag(<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 unflagged. 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 unflags the specified email in Zoho Mail:
response = zoho.mail.removeFlag(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 email that will be unflagged.
"mail_oauth_connection"
The TEXT that represents the link name of Zoho Mail oauth connection.
Response Format
Success Response
{
"message":"Action markFlag is successful",
"status":"success"
}
- The success response will be returned in the following format: