Generate custom documents, automate emails and build reports with our powerful JavaScript Mail merge API. Just perform Mail merge operation on the DOCX template with the merge fields and your data from the custom data source using JavaScript. Save the result in any supported file format.
Want to use the powerful Node Mail merge API to create your own programming solution? Our product will help you to do it easily! Create personalized documents, automate emails, build reports based on your own data set – it is all possible with our product API.
Our Node solution allows you to perform a Mail merge operation using JavaScript based on a DOCX template and your own source data. Such a merge template should include special merge fields into which your data will be inserted during the Mail merge operation.
Using the DOCX Mail merge template with merge fields, you can build any custom reports with JavaScript based on your custom data sources. Simply create a DOCX merge template with merge fields in the right places and fill those fields with data from your source for report generating.
You can be sure that your data is completely safe because our product API complies with the latest Node security standards.
Use our powerful Mail merge API to prepare and automate bulk emails. Create a DOCX Mail merge template with merge fields, and then perform a Mail merge operation to populate data from your source into those fields in JavaScript. For example, you can create an DOCX merge template with merge fields instead of your customers' personal data. During the merge, these fields will be replaced with customer-specific data retrieved from your data source.
With our Node software solution, you get an efficient engine to generate personalized emails in seconds!
See how the DOCX Mail merge operation works using our product API. Just import the DOCX template with merge fields and data, and then perform Mail merge in JavaScript.
At the end, save the result generated by using our Mail merge Node engine, choosing a convenient format:
import * as fs from "fs";
const wordsApi = new WordsApi("####-####-####-####-####", "##################");
const template = fs.createReadStream("Input1.docx");
const data = fs.createReadStream("Input2.docx");
const executeMailMergeOnline = new model.ExecuteMailMergeOnlineRequest({
template: template,
data: data
});
wordsApi.executeMailMergeOnline(executeMailMergeOnline)
.then((executeMailMergeOnlineResult) => {
console.log("Result of ExecuteMailMergeOnline: ", executeMailMergeOnlineResult);
});
Install 'Aspose.Words Cloud SDK for Node.js' using NPM package manager. Run npm install asposewordscloud --save from the command line to install the SDK via the NPM package manager. As an alternative, you can manually clone Aspose.Words Cloud SDK for Node.js source code from GitHub and use it in your project. Please follow these Instructions to quickly get the necessary security credentials and access our REST API.
Refer to the Repository Documentation to see more details.