Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Nov 10, 2015 6:17:02 AM
Nov 10, 2015 6:17:02 AM
It is often convenient to include recipient details, reports, measure totals or subtotals and other information in the Subject field and the message Body accompanying reports being distributed by e-mail. This can be done by inserting QlikView variables or dynamic tags in either or both while creating a Report Task. All QlikView variables contained in the connected QlikView document can be used and are present in the Select Tags dialog window. Tags present under Recipients, Reports, QlikView, and Tasks categories are NPrinting dynamic tags. The variables are alphabetically sorted.
When creating your recipients, you can add details like:
Any or all of these details can be inserted into the email subject or message body.
Recipients Variables are automatically replaced with the values of corresponding QlikView variables. This replacement happens after the filters associated with the recipients and the filters associated with the task that generates the email have been applied. Tags are made following the scheme: %%Recipient_Variables_QlikViewDocumentName_QlikViewVariableName%%. Tags can be found in the Recipients node.
For instance:
Create a variable in QlikView called “vTotalSales” and set the value to the formula =money(sum(Sales),'$ #,##0.00')
Add the variable tag “%%Recipient_Variable_SalesDemo_vTotalSales%%” to an email message
When you send the email to your recipients, recipient filters will be applied before the value of the variable is calculated. So, if your recipients have filters based on their sales territories, then the expression =money(sum(Sales),'$ #,##0.00') will show sales in the appropriate territory for each salesman.
We’ve also added the new tag %%Recipient_Current_Selections%%, which when used, is replaced by the QlikView current selections associated with the recipient and task for each connection. This tag does not display report filters because you can attach as many different reports to the same email as you like.
After opened your QlikView document:
You can also use these tags in the e-mail message body.
Repeat the process as many times as is required.
The %%Recipient_Current_Selections%% tag is a recipient filter dependent tag. This type of tag can be used in the subject and body of any email. They are automatically replaced with the values of the corresponding QlikView filters. The values are generated after the Recipient and Task filters have been applied for that Task for that Recipient.
To insert a Recipient Variable, type in the fixed text of the email then:
To insert a QlikView Variable:
"Save and Close" the report Task and run it by clicking Run in the Task area of the ribbon bar. Then open your email account to check the result. Please note that Recipient variables like %%Recipient_Current_Selections%% which show current selections, are affected only by recipient and task filters. Report filters don't affect the values shown.