Email scripts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2025 07:04 AM
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
09-08-2025 07:11 AM
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
09-08-2025 07:12 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2025 07:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2025 08:36 AM
what's your actual business requirement and what are you trying to achieve?