Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2020 07:28 AM
refer below script
var str = "Hello Servicenow user Chinmayee Mishra.User user ID is : 1234s" ;
var substring = str.substring(str.indexOf("ID is : ") +8, str.length);
gs.info('->'+substring+'<');
Regards
Ankur
Regards,
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader