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-...
Thanks
Sushant Trimukhe