Choose where you’d like to start

Mark Document as Ready in Zoho Writer

Description

The zoho.writer.documents.markAsReady task marks the document as ready. This task is based on the Zoho Writer Mark As Ready API.

Note: Applicable to all services except Zoho Creator.

Syntax

<response> = zoho.writer.documents.markAsReady(<document_id>, <connection>);

where:

ParamsData typeDescription
<response>KEY-VALUEThe 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:

  • To prevent new authtoken generation and ensure new integration tasks (created after the deadline specified in the post) work as expected, a Zoho OAuth connection with appropriate scopes is mandatory. Existing integration tasks will continue to work, with or without the connections parameter, until you manually delete the authtoken from Zoho Accounts.

  • Add relevant scopes from the Zoho Writer API when creating the connection.

  • Refer to this post for a list of Zoho services that support the Connections page.

  • Learn more about connections

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
The KEY-VALUE response returned by Zoho Writer. It represents whether the document has been marked as ready.
"h36bc2a6c50b2754a405880c1d1679a5f5be9"
The TEXT that represents the ID of the document in Zoho Writer.
"writer_oauth_connection"
The TEXT that represents the name of the 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"
}

Related Links

Get Started Now

Execute