Crow Canyon Software Forum

Forum Navigation
Please or Register to create posts and topics.

Using a defined variable in the body of an email?

Use Case:

A workflow Query List action, queryDocs, queries a document library, Docs, looking for any documents with an empty field DocType. The results get defined to a variable, docNames.

I want to then use a SendMail action to notify a user that "the following documents are missing a defined Document Type" and I want to list out the documents in the docNames variable in the body of the email.

What would be the syntax for placing that variable within the email body?

Hi Davis,

Please use below syntax to print variable value in mail template.

Syntax: %%Variable name##Value%%
Ex: %%docNames##Value%%

On the other hand, you can use scheduled report workflow to send mail with list view. You can create a filtered view with condition as "DocType" is empty and then use this view in mail template in scheduled report workflow.

Please refer below article for more details regarding schedule report workflows:

https://www.crowcanyon.info/nitro/appmanual_v2/scheduled-reports.html