Docx

📑 Generate DOCX documents effortlessly.

The Docx function enables you to create Word documents.

To use the Docx function, you need to configure it with specific details:

  • entryId: Identify the specific entry for which you want to generate the Word document.
  • recordInternalId: Specify the internal ID of the record associated with the entry.
  • templateId: Provide the ID of the Docx template you want to use as the basis for generating the document.
  • generatedFileDestinationField: Choose a field within the record to store the generated Docx file.
  • uuidFieldForPdfFile: Select a field to associate with the generated file.
async function script(C) {
    const event = C.getEvent()
    const entryId = event.entryId;
    const recordInternalId = event.recordInternalId;
    
    const pdf = await C.getPdfFromGoogleDocsTemplate({
        entryId,
        recordInternalId,
        templateId: 841760,
        generatedFileDestinationField: "signed-contract",
        uuidFieldForPdfFile: "title"
    });
    return {pdf };
}

Output

The output of the Docx function will contain information about the generated Word document. Such as:

  • Generated Docx File: The generated Word document, which can be downloaded, saved, or further processed as needed.
  • File Association: The Docx file will be associated with the specified entry or record using the chosen field (defined by uuidFieldForPdfFile).

📌 Need Help?

If you require assistance or encounter any issues, please don't hesitate to contact us for further support.