Hello Zoho Developers.
Here is some information about Zoho Writer.
Writer is not just another online word processor, it's a powerful tool for editing, collaboration, and publishing.
Even with its wide range of features, Writer's pared-down user interface makes it easy to focus on the work at hand.
Creating and Managing
Start from scratch by creating a new blank document.
You can type right away and not worry about saving your document.
All the documents created are automatically saved with instant access across devices.
You can also create a new document from the available templates or import an existing document from your desktop and start editing it.
By integrating these steps, you can efficiently create and manage dynamic merge templates in Zoho Writer, ensuring that your documents are populated with the most current and relevant data from your records or database sources.
1. Create a merge template in Zoho Writer.
2. Insert merge fields into the merge template.
3. Write code in your application where your records are stored (e.g., CRM, Creator, etc.).
4. Retrieve the document ID (your merge template ID) from Zoho Writer.
5. Utilize the Zoho Writer API to retrieve the merge fields from the merge template.
GetFields = invokeurl
[
type :GET
connection:"zohowriter"
];
info GetFields;
6. Use the API field names to map the fields with your record fields.
7. Create the document using the Zoho Writer Create API.
CreateDocument = invokeurl
[
type :POST
parameters:param
connection:"zohowriter"
];
info CreateDocument;
8. Before that, declare the parameters in a map.
param = Map();
param.put("merge_data",{"data":finalmap});
param.put("output_format","docx");
param.put("response_type","link");
param.put("test_mode",true);
8(a). `finalmap`: This map contains all the values to be used in the document.
8(b). `output_format`: This parameter describes the format of the sheet in which it will be downloaded.
8(c). `test_mode`: When you set the test mode to true, Zoho Writer credits will not be consumed. If you omit this parameter or set it to false (default), credits will be consumed normally.