- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2025 02:36 AM - last edited a month ago
Hello,
I have written below Email script
----------------------------------
it getting CIT number , I want CIR number,
Please help me .
Thank you
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2025 05:05 AM
earlier you said the notification is on u_cloud_intake_request table so I gave script accordingly
If notification is on u_cloud_intake_task and you want to show REQ then simply use this and no email script required
Use the correct field name on the u_cloud_intake_task which refers to the Intake Request
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2025 05:44 AM
is the field name "u_cloud_intake" on intake task referring to intake request?
share field configuration screenshot
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2025 03:23 AM
you added wrong code code log.
add this at the beginning i.e. just above the IF
gs.info('table is' + current.getTableName());
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2025 03:31 AM
I have updated this code
Output :
CIR number is empty , Please suggest modifications
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2025 03:40 AM
you can directly include link to record without email script in email body itself
check this
1) use the insert link option
2) then add details like this in that link
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2025 03:45 AM
Is it working statically or dynamically? We have three environments: DEV, TEST, and PROD. Suppose a notification is triggered in the TEST environment—it should redirect to the corresponding record on the Test Platform. Similarly, for DEV and PROD, it should redirect to their respective platform records
Thank you for your responce
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2025 03:48 AM
it will work in all environments as the URL is relative and not static and will pick the instance name etc automatically.
You can hover over that link and see it adds DEV instance automatically.
If you see I haven't included any instance name etc so it will work in all DEV, TEST and PROD.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader