Email scripts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
Hi,
I was working on condition table where I need to check only Admin created Email Scripts.
Can anyone help me out with the proper conditions instead of using Sys_id.
Regards,
Dhanush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
Hi @Dhanush Rao K ,
sys_created_by usually stores the UserID(user_name) of the user record not the sysid
you can replace the sysid with user_name of the admin user record
is it correct to check a condition we usually use "==" not '=' is the expression correct? if not replace '=' with '=='
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Chaitanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
Hi @Dhanush Rao K ,
1. condition (using encoded query)
sys_created_by=admin
2. evaluate (using boolean check)
This field should return true or false based on runtime evaluation. For example:
answer = (current.sys_created_by == gs.getUserID('admin'));
If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
Hi @Dhanush Rao K ,
You can use : sys_created_by=admin
Sandeep Dutta
Please mark the answer correct & Helpful, if i could help you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
what's your actual business requirement and what are you trying to achieve?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader