Expand my Community achievements bar.

SOLVED

Attach file to approval email or provide a link to download the file

Avatar

Level 4

Hi

 

I have a bit of an unusual request.

 

We need to perform a manual step in some of our campaigns. AC will select the list of the customers, then this list has to be given to an operator and workflow should be paused until the operation is completed.

 

I was planning Export the list as a file using Export activity and then attach the list to Approval activity and send the file. However, it seems that Approval activity does not have that option. I tested multiple ways to do it, none of them works. Even if I manage to transfer the file name to the activity, it cannot be attached because the process will actually happen on the mid-sourcing server and the file is exported on our marketing instance.

 

Next, I attempted to provide a link to download the file. I used xtk:fileRes to generate the resource, but it did not work either. It seems that xtk:fileRes can only generate image resource and does not work with CSV.

 

What other option do I have? Is there any way to generate a link to download the CSV file from marketing instance?

 

Thanks 

Dima

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @DimaKudryavtsev,

 

Of course you can add an attachment to your approval activities in your workflows.

Just create a new technical delivery template, this time with a calculated attachment, pointing to the file which is generated so it can be attached in there.

If you are using a "data extraction" activity to generate the file, then by default the file is located in the "export/" directory on your sever. So in the attachment section of your delivery template, you can specify it like this:

isahore_0-1603879881393.png

You can then use this template in your approval activity.

 

Let me know if that helps.

 

Regards,

Ishan

 

View solution in original post

5 Replies

Avatar

Community Advisor

Hello @DimaKudryavtsev,

 

Here is a workaround to achieve the same thing.

 

Add a delivery activity before the approval step and attach the file in the delivery. This delivery will be sent to the same operator and then you can add the approval step to hold your workflow until it is approved or declined.

 

Thanks,

Manoj

 

 


     Manoj
     Find me on LinkedIn

Avatar

Level 4
I want to avoid sending two deliveries if possible. There going to be multiple workflows like that and having two deliveries can become very messi.

Avatar

Level 4
I'm thinking to create my own web app to handle this use case.

Avatar

Correct answer by
Community Advisor

Hi @DimaKudryavtsev,

 

Of course you can add an attachment to your approval activities in your workflows.

Just create a new technical delivery template, this time with a calculated attachment, pointing to the file which is generated so it can be attached in there.

If you are using a "data extraction" activity to generate the file, then by default the file is located in the "export/" directory on your sever. So in the attachment section of your delivery template, you can specify it like this:

isahore_0-1603879881393.png

You can then use this template in your approval activity.

 

Let me know if that helps.

 

Regards,

Ishan

 

Avatar

Administrator

Hi @DimaKudryavtsev,

Were you able to resolve this query with any of the given solutions? Do let us know.

Thanks!



Sukrity Wadhwa