Mail merge with arrays of fieldNames and values


#1

Hi, we’re evaluating both Aspose.Words and Aspose Words Cloud.
In Aspose.Words you can perform a mail merge by providing two arrays to the MailMerge.Execute method: an array of fieldNames, and an array of the same size with the corresponding field values.
Is this method also available in Aspose.Words Cloud? If so, how do we submit these two arrays? The api only reads “data”, described as Mail merge data and formatted as formData. But there you need to provide an xml or json structure? Do we have to convert the arrays to xml or json?


#2

@ejspaans

Please check the Mail Merge articles given on the Aspose Cloud Documentation, it will make most of the things clear.

https://docs.aspose.cloud/display/wordscloud/Using+Mail+Merge+features+with+Word+Documents

cURL Examples given on the articles will particularly help you in understanding the Mail Merge REST APIs.

The api only reads “data”, described as Mail merge data and formatted as formData. But there you need to provide an xml or json structure? Do we have to convert the arrays to xml or json?

Yes, the Merge Merge data will be provided in XML or JSON format.

Moreover, we have written Aspose.Words Cloud SDKs that make really easy to call our REST APIs: