need to use alert activity after data extraction activity | Community
Skip to main content
Level 4
September 21, 2025
Solved

need to use alert activity after data extraction activity

  • September 21, 2025
  • 1 reply
  • 793 views

Hello all, 

 

in a workflow I need to use Data extraction activity and then attach the file extracted in Data extraction activity to Alert activty and send email notification......please help me how can i achieve this..............

 

@_manoj_kumar_

@parthasarathy 

Best answer by SushantTrimukheD

HI @shruti1,

It is not possible to directly attach a file from the Data extraction activity to the Alert activity in Adobe Campaign Classic, because the native Alert activity does not support file attachments out of the box. Instead, use a combination of Data Extraction and a standard Email Delivery activity that supports attachments, as detailed below.

  • Perform the Data Extraction (Extract file activity) as usual to generate the required file (e.g., CSV or TXT).
  • Store the output filename in a variable (such as vars.filename or instance.vars.filename) immediately after extraction this can be achieved using a JavaScript activity if custom variable handling is needed.

  • Add an Email Delivery activity (not Alert) and set the target audience to your operator group (using xtk:operator mapping).

 

  • In the Email Delivery activity, add a “calculated attachment” referencing the file extracted earlier, using the filename variable. For dynamic attachment, input the path as {vars.filename} or the relevant instance variable.

I’ve previously shared the same approach and code in the community, so you can refer to it here:
https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-classic-questions/attach-a-csv-file-on-a-delivery-or-alert-activity-that-is/m-p/739493”

Thanks
Sushant Trimukhe

1 reply

SushantTrimukheD
SushantTrimukheDAccepted solution
Level 4
September 22, 2025

HI @shruti1,

It is not possible to directly attach a file from the Data extraction activity to the Alert activity in Adobe Campaign Classic, because the native Alert activity does not support file attachments out of the box. Instead, use a combination of Data Extraction and a standard Email Delivery activity that supports attachments, as detailed below.

  • Perform the Data Extraction (Extract file activity) as usual to generate the required file (e.g., CSV or TXT).
  • Store the output filename in a variable (such as vars.filename or instance.vars.filename) immediately after extraction this can be achieved using a JavaScript activity if custom variable handling is needed.

  • Add an Email Delivery activity (not Alert) and set the target audience to your operator group (using xtk:operator mapping).

 

  • In the Email Delivery activity, add a “calculated attachment” referencing the file extracted earlier, using the filename variable. For dynamic attachment, input the path as {vars.filename} or the relevant instance variable.

I’ve previously shared the same approach and code in the community, so you can refer to it here:
https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-classic-questions/attach-a-csv-file-on-a-delivery-or-alert-activity-that-is/m-p/739493”

Thanks
Sushant Trimukhe