- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2018 03:11 AM
In email script, I need to get RITM number from short description(see below screen shot) and place it in a new line. How can I achieve this. Tried with substring(see Mail Script) but not working. Please help
Mail Script:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2018 02:19 AM
Hi Rajadinesh,
Find the below:
1. Email Script:
2. Notification body:
3. Preview of the notification:
4. Incident I used to preview:
I have tested it .. I am able to get the RITM number from short description. Check it again...and do as per the above.
Mark it correct if worked for u as well so that it will be helpful to others as well..!
Regards,
Snehal M

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2018 03:17 AM
if you are sending notification in catalog task table, then you dont need mail script
just add in notification directly (same works in mail script as well)
current.request_item.getDisplayValue();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2018 03:23 AM
Hi Rajadinesh,
Try out the following mail script:
var description= < store the short description value in this description field >
var descriptioncontent = [];
descriptioncontent = comment.split("-"); // split it by " - "
template.print(descriptioncontent[0]); // it will contain the RITM in array[0]
Mark it correct if worked for u as well so that it will be helpful to others as well..!
Regards,
Snehal M
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2018 03:49 AM
No. it is not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2018 02:19 AM
Hi Rajadinesh,
Find the below:
1. Email Script:
2. Notification body:
3. Preview of the notification:
4. Incident I used to preview:
I have tested it .. I am able to get the RITM number from short description. Check it again...and do as per the above.
Mark it correct if worked for u as well so that it will be helpful to others as well..!
Regards,
Snehal M