This use case details how to generate a monthly out-of-the-box Tracking indicators report in PDF format and how to send it to a list of recipients.
The main implementation steps for this use case are:
Go to the Profiles and targets tab, click the Lists link, then the Create button. Select New list and create a new recipient list for the report to be sent to.
For more on creating lists, refer to this .
Go to the Resources > Templates > Delivery templates node of the Adobe Campaign explorer and duplicate the Email delivery out-of-the-box template.
For more on creating a delivery template, refer to this .
Enter the various template parameters: label, target (the list of previously created recipients), subject and content.
Each time the workflow is executed, the Tracking indicators report is updated (refer to Step 3: Creating the workflow). To include the latest version of the report in the delivery, you need to add a Calculated attachment:
For more on creating a calculated attachment, refer to this .
Click the Attachments link and click Add, then select Calculated attachment.
Go to the Type field and select the fourth option: File name is computed during delivery of each message (it may then depend on the recipient profile).
The value entered in the Label field will not appear in the final delivery.
Go to the edit zone and enter the access path and name of the file.
Select the Advanced tab and check Script the name of the file name displayed in the mails sent. Go to the edit zone and enter the name you want to give the attachment in the final delivery.
The following workflow was created for this use case. It has three activities:
Now go to the Administration > Production > Technical workflows node and create a new workflow.
Start by adding a Scheduler type activity and configure it so that the workflow executes on the first Monday of the month.
For more on configuring the scheduler, refer to Scheduler.
Enter the following code in the edit zone:
var reportName = "deliveryFeedback"; var path = "/tmp/deliveryFeedback.pdf"; var exportFormat = "PDF"; var reportURL = "<PUT THE URL OF THE REPORT HERE>"; var _ctx = <ctx _context="global" _reportContext="deliveryFeedback" /> var isAdhoc = 0; xtk.report.export(reportName, _ctx, exportFormat, path, isAdhoc);
The following variables are used:
var reportName: enter the internal name of the report in double quotes. In this case, the internal name of the Tracking indicator report is “deliveryFeedback”.
var path: enter the save path of the file (“tmp/files/”), the name you want to give the file (“deliveryFeedback”) and the file extension (“.pdf”). In this case, we have used the internal name as the file name. Values need to be between double quotes and separated by the “+” character.
The file must be saved on the server. You must enter the same path and the same name in the General tab of the edit window for the calculated attachment (refer to: Step 2: Creating the delivery template).
var exportFormat: enter the export format of the file (“PDF”).
var _ctx (context): in this case, we are using the Tracking indicators report in its global context.
Finish by adding a Delivery type activity with the following options: