Mark Document as Ready in Zoho Writer
Table of Contents
Note:
- Each time the zoho.writer.documents.markAsReady 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.writer.documents.markAsReady 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.
Description
The zoho.writer.documents.markAsReady task marks the document as ready. This task is based on the Zoho Writer Mark As Ready API.
Syntax
<response> = zoho.writer.documents.markAsReady(<document_id>, <connection>);
where:
| Params | Data type | Description |
| <response> | KEY-VALUE | The response returned by Zoho Writer. It represents whether the document has been marked ready along with the user who marked it. |
| <document_id> | TEXT | The ID of the document which needs to be marked as ready. The document ID can be obtained from the URL of the document which needs to be marked as ready. The URL is in the following format: https://writer.zoho.com/writer/open/<document_id> |
| <connection> | TEXT | The connection's link name. Note:
|
Example
The following script marks the given Writer document as ready.
document_id = "h36bc2a6c50b2754a405880c1d1679a5f5be9"; response = zoho.writer.documents.markAsReady(document_id, "writer_oauth_connection"); info response;
where:
response"h36bc2a6c50b2754a405880c1d1679a5f5be9""writer_oauth_connection"Response Format
{ "modified_by": { "email_id": "amelia@zylker.com", "profile_photo": "https://contacts.zoho.com/file?t=user&ID=1234&fs=thumb", "user_id": "456215787", "timezone": "Asia/Kolkata", "language": "en", "display_name": "Amelia" }, "state": "active", "message": "Document marked as complete successfully" }