Free Support Forum - aspose.cloud

How to use mail merge conditional formatting with Aspose.Words REST API in Salesforce?

We use Aspose to convert Word documents to PDF in Salesforce.
I need to use If statements to decide whether to include specific data (table row) or not. I tried all options in the manual, but it is totally ignored.
Here is example of how my data looks like:

Screen Shot 2020-04-17 at 3.56.12 PM.png (13.4 KB)

@yankarasik,

I have observed your requirements and it seems you are using Aspose.Words to convert file from Word to PDF format. I am moving your query to Aspose.Words forum and our colleagues from Aspose.Words team will help you in this regards.

@yankarasik

Thanks for your inquiry. Please check documentation link how to use IF conditional block in your Mail Merge template. Please check sample template screenshot for your reference.

Thanks, I tried the proposed format, here is what I have in the file:
{IF {{GroupName}}=””
{{“N/A”}}
{{GroupName}} }

but it just shows the IF text as-is in the result file:
{IF Engineering
Management=””
Engineering
Management }

“Engineering Management” in this case is the actual field value it pulls from the database.

@yankarasik

Thanks for your feedback. Please share your sample template along with the data file it will help us to address your issue exactly.