Add the current date to the subject line of a scheduled report

sellis
Kilo Contributor

I'd like to know how to add the current date to the subject line of a scheduled report.  This daily report is emailed to all CAB members but I'd like the report name to show the date it is for.  e.g.  report for changes made yesterday should show yesterdays date in the subject line.  I'm guessing this is fairly simple to do but have no code experience.

 

Thanks in advance

3 REPLIES 3

dvp
Mega Sage
Mega Sage

Write a email script and call it in the report body as follows

${mail_script:EMAIL_SCRIPT_NAME}

Chalan B L
Giga Guru
Hello Sellis, As DVP mentioned call a mail script in the subject ${mail_script:EMAIL_SCRIPT_NAME} Left nav -- Email script Name - EMAIL_SCRIPT_NAME Inside the function just write return gs.nowDateTime(); Mark correct and helpful if it helped ..!! Regards, Chalan

User657582
Tera Contributor

Hi SEllis,

the script can be included right in the subject. See answer in a similar question in below link.

https://community.servicenow.com/community?id=community_question&sys_id=88b5cfeddbd8dbc01dcaf3231f96...