How to remove attachments in email without removing the record from attachements table

GANESH23
Tera Contributor

Hi Team,

I want to remove attchment from email while sending,at it is in send-ready state without removing the record from sys attachments table.

Thanks,

28 REPLIES 28

How to hide email attachments in email with ACL?

 

Hi Ganesh,

Can you explain your business use-case/requirement?

Please provide some more details for your question

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi Ankur,

I have to schedule a report of Incident SLAs about to breach in daily bases.

so i have created a scheduled report. in that report email instead of attachment i have to send a link in body regarding that document. the report document is stored in some custom table.

so, before sending the email i want to remove the attachment from email.

Hi,

you cannot script it directly as it would include the attachment when you use scheduled reports.

Any specific reason you don't want file but only want link?

because you will require workaround for this

1) create after update BR on sys_email table

2) Condition: state changes to send-ready AND subject is your Report subject

3) then in script delete the attachment from that email record

4) but including the link is difficult

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi Ankur,

I have created one BR and not working as expected.

find_real_file.png

 

find_real_file.png