Hello,
I’m trying to remove unused merge fields using your simple merge API (no regions, not mustache), but even when I use all the cleanup parameters at once, the unused fields are never removed.
I think it may be because I am using <<next_record>>, as in a page of labels.
I also tried using mailMergeFieldNames with DELETE, but I get a 405 METHOD NOT ALLOWED error. The same call with GET gives me the expected result described in the docs, but obviously does not solve my problem.
I have attached my word template and some XML.
Here is the call I make to start the merge with cleanup params:
POST https://api.aspose.com/v1.1/words/labels.docx/executeMailMerge?appSID=xxxx&folder=myfolder&cleanup=ContainingFields,EmptyParagraphs,UnusedFields,UnusedRegions&signature=yyyy
Here is the call I make to try to remove the merge fields after the fact when cleanup doesn’t do anything
DELETE https://api.aspose.com/v1.1/words/labels.74caa718-12bb-4670-ba88-6c4cd212d679.docx/mailMergeFieldNames?appSID=xxxx&folder=myfolder&signature=yyyy
Thank you so much for any help you can provide,
Nathan