How to show todays date in the subject of email
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2019 07:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2023 01:31 AM
Hi,
I am also having similar requirement. I need the previous days date in the subject of email of scheduled report. Do you have any work around please suggest.
Thanks,
Mahesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2023 01:51 AM
@Mahesh79 You can set the subject in the mail script
Set subject as empty in notification and add the mail script to body
In mail script set the subject using email.setSubject function as shown in image below
Result:
Please mark as correct answer if this solves your issue.
ServiceNow Community Rising Star, Class of 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2023 02:51 AM
Hi,
I have tried this one also . I am not getting the exact date.
Please find my code
Thanks,
Mahesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2023 03:07 AM
@Mahesh79 USe below script
ServiceNow Community Rising Star, Class of 2023