Add a timestamp to a scheduled report

Not applicable

We have a few scheduled reports that are delivered to our service delivery manager daily, currently the subject / file name is the same everytime.

 

Is there a way to timestamp either the subject line or attachment file name?

1 ACCEPTED SOLUTION

CapaJC
ServiceNow Employee
ServiceNow Employee

When configuring a Scheduled Report, the Subject line now accepts JavaScript. e.g., the following in the Subject of a scheduled report will put the current date in the resultant email (e.g., for a report of today's problems):

javascript:"Problems created on " + gs.now();


View solution in original post

21 REPLIES 21

thenning
Giga Contributor

Wonder if anyone figured out away to do this, if its even possible.


slevin
Kilo Explorer

Is there an answer to this question yet? I have the same request.

Thanks,


CapaJC
ServiceNow Employee
ServiceNow Employee

When configuring a Scheduled Report, the Subject line now accepts JavaScript. e.g., the following in the Subject of a scheduled report will put the current date in the resultant email (e.g., for a report of today's problems):

javascript:"Problems created on " + gs.now();


The javascript:"ENTER TEXT " + gs.now(); worked great for the subject line as you mentioned. Can you add the same date stamp to the name the report attachment?