As an example of integrating JavaScript functions into your Make.com workflows, this tutorial shows how to generate Invoice PDFs dynamically. This is useful for automating the generation of invoices in your workflows.
To do this, we have created some dynamic parameters on the right-hand side in the CustomJS platform. These parameters are inserted in the HTML template as variables and are replaced by the template engine Nunjucks during rendering.
The HTML template was created as a static variable with the type HTML so the CustomJS HTML editor can be used as you can see in the screenshot.
You can import this entire setup into a new CustomJS function. To do this, create an empty function and then select the import button from the context menu.
You can find the import code in importCode.json.
Generate branded PDF quotes, proposals, and contracts straight from Pipedrive deal data. Three approaches, from a free static link to a native webhook that works on every plan. 600 free PDFs/month.
Generate branded PDFs - invoices, NDAs, quotes, certificates - straight from HubSpot data. Three approaches, from a free no-code link to fully automated workflows. 600 free PDFs/month.
Generate professional PDFs in Power Automate with CustomJS. Create invoices, receipts, reports, and certificates with custom HTML templates, QR codes, and advanced formatting. No Azure Functions required.