- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2023 11:04 PM
I have one system property "change_request.autoclose.time" which states that Number of days (integer) after which Reviewed change request are automatically closed. Zero (0) disable this feature. How the Email script will be to use this in my email body content
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2023 11:24 PM - edited 06-20-2023 11:25 PM
Hello Pritam,
1) Call the email script from the Message HTML in your notification using the below syntax :
E.G : ${mail_script:change_request_details}
2) Now go to left navigation -> Type email script & open 'Notification email script' & either create new script if it's not available or open existing script.
In the email script, you can get & check the system property value using the below syntax
You can refer to OOB email scripts such as 'incident_resolved_incident' or 'incident_body ' & see how its implemented.
Let me know if that helps or if you have any further questions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2023 11:19 PM
why this system property needs to be used in email body or email script?
what's the use case?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2023 11:22 PM
the system property is for auto-closing the change_request in 7 days value of that system property is 7, type is integer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2023 11:25 PM
I have created one notification that whenever the state of change_request changes to review the notification is sent to rerquested by of change_request
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2023 01:32 AM
okay that's fine.
but what's the use of that system property in email script?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader