Expand my Community achievements bar.

Announcing the launch of new sub-community for Campaign Web UI to cater specifically to the needs of Campaign Web UI users!
SOLVED

How to set up approval activity with the inbound data?

Avatar

Level 5

Hi everyone, 

 

I want to set up an approval activity with operators , where they have to review the inbound data that has been generated and one they approve. It has to trigger an email for those inbound data. 

 

Query activity > Deduplication> Data extrcation> Approval> Recurring Delivery

 

Will the above set of activities would be enough ?

 

How can i get the inbound data to be sent as excel in the approval activity email. 

 

Please suggest. Thank you in advance. 

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @rvnth ,

If you want to approve the target count alone, then you can open delivery > property > approvals tab > enable target approval.

ParthaSarathy_3-1703604839197.png

 

If your use case is to send target recipient counts and other details in a file (generated in Data extraction activity)  to the operator, by default in approval activity we don't have an option to add an attachment.

You can try the below configurations to add the 'data extraction' generated file to get attached in Approval mail generated by 'Approval' activity.

Step-1: Delivery Template

Navigate to /Administration/Campaign Management/Technical delivery templates/ and search for 'Notification of the assignees for a workflow task' and duplicate this template and label it as 'Notification of the assignees for a workflow task with Attachment'.

Remove the default subject line and Hardcode the subject line here.

Next, click > Attachment

ParthaSarathy_0-1703604278498.png

Attachment > Add > calculated attachment > Type: File name is computed during delivery for each message

In script part, add <%= dataSource.title %>

ParthaSarathy_1-1703604398577.png

 

Step2: Workflow

You can use the same workflow setup as you mentioned in Question.

ParthaSarathy_5-1703605443592.png

Open Approval activity, Advanced parameters > change the delivery template to above created delivery template 'Notification of the assignees for a workflow task with Attachment'

And in title, add the script as <%= vars.filename %>

ParthaSarathy_2-1703604655113.png

 

Now when you run the workflow, the operator will receive the file generated in Data extraction as an email attachment.

Result:

ParthaSarathy_4-1703605302189.png

View solution in original post

8 Replies

Avatar

Correct answer by
Community Advisor

Hi @rvnth ,

If you want to approve the target count alone, then you can open delivery > property > approvals tab > enable target approval.

ParthaSarathy_3-1703604839197.png

 

If your use case is to send target recipient counts and other details in a file (generated in Data extraction activity)  to the operator, by default in approval activity we don't have an option to add an attachment.

You can try the below configurations to add the 'data extraction' generated file to get attached in Approval mail generated by 'Approval' activity.

Step-1: Delivery Template

Navigate to /Administration/Campaign Management/Technical delivery templates/ and search for 'Notification of the assignees for a workflow task' and duplicate this template and label it as 'Notification of the assignees for a workflow task with Attachment'.

Remove the default subject line and Hardcode the subject line here.

Next, click > Attachment

ParthaSarathy_0-1703604278498.png

Attachment > Add > calculated attachment > Type: File name is computed during delivery for each message

In script part, add <%= dataSource.title %>

ParthaSarathy_1-1703604398577.png

 

Step2: Workflow

You can use the same workflow setup as you mentioned in Question.

ParthaSarathy_5-1703605443592.png

Open Approval activity, Advanced parameters > change the delivery template to above created delivery template 'Notification of the assignees for a workflow task with Attachment'

And in title, add the script as <%= vars.filename %>

ParthaSarathy_2-1703604655113.png

 

Now when you run the workflow, the operator will receive the file generated in Data extraction as an email attachment.

Result:

ParthaSarathy_4-1703605302189.png

Avatar

Level 5

Thank you @ParthaSarathy , Is there a way that I can make these files password protected. 

 

 

Avatar

Level 5

Where can I find the logs for these approval emails that are being sent.

 

Thank you in advance. 

Avatar

Community Advisor

@rvnth , you can find it in /Administration/Production/Objects created automatically/Technical deliveries/Workflow notifications/

Search with your delivery template's label. (Or create a delivery view folder, and search with Delivery template's label)

ParthaSarathy_0-1703660914810.png

And to see which operator had Approved / Rejected, In the workflow right click the Approval activity and select display logs. 

Avatar

Level 5

Hi @ParthaSarathy , 

 

I am facing an issue where it says cannot open file (errorno=2 no such file or directory ) Please suggest

Avatar

Community Advisor

@rvnth , go to nms:delivery schema > data tab > filter > advanced filter > @label equals to 'provide_the_label' > ok

Right click > Configure list.. > add [folderProcess/@fullName] > ok 

ParthaSarathy_1-1703689860055.png

Now navigate to the folder and view your delivery.

 

Or create a new Delivery folder > right click folder > property > Restriction tab > enable 'This folder is a view' > ok. Mow search your delivery label here.

ParthaSarathy_0-1703689821680.png

 

Still if you're getting error, you might have access issue.

Avatar

Level 5

Hi @ParthaSarathy 

 

Is it possible to directly send the inbound data of few specific columns in to the email instead of sending it as an attachment?

 

Please suggest