- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-10-2024 04:02 AM
Hi All
Based on recipient to assign to assigned TO how to achieve this please suggest
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-12-2024 04:37 AM
@manumanoj extract recipient email in the Email Action script, find the corresponding user by querying the sys_user table and addQuery('email', email.to.toString().split(',')[0]); email.to returns comma separated list of recipients.
once you find the user.
current.assigned_to = glideUser.getValue('sys_id');
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-12-2024 04:29 AM
Sorry mate, need to check , possible to share code screenshot also did yu check in email logs is this user id is coming properly.
@Sandeep Rajput any thoughts
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-12-2024 10:32 PM
Hi @Sandeep Rajput @Dr Atul G- LNG here is the logic please correct me if any thing wrong

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-12-2024 04:37 AM
@manumanoj extract recipient email in the Email Action script, find the corresponding user by querying the sys_user table and addQuery('email', email.to.toString().split(',')[0]); email.to returns comma separated list of recipients.
once you find the user.
current.assigned_to = glideUser.getValue('sys_id');
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-12-2024 08:51 PM
Hi @Sandeep Rajput @Dr Atul G- LNG Here is the logic please correct me if any thing wrong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2024 03:37 AM
here is the logic not able to update showing error that in logs
The selected 'Recipients in fields' - 'assigned_to' does not have value
Please suggest how that can resolve