Condition to add updated by should not be part of one fulfiller assignment group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2024 01:34 AM
Hi Team,
I have a requirement to change the color of Number in agent workspace when last Updated by user is not part of fulfiller group.
I am using Highlight Values in now experience module and trying to keep condition like as below.
javascript:current.sys_updated_by.isMemberOf('1a433de24759461012dd9bed316d43c6');
Could you please help me to add the condition that updated by should not be the member of fulfiller group.
Regards,
Raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2024 04:34 AM
So the problem is that sys_updated_by is not a reference to user. Observe
The original design prioritized knowing who did what... and since users could become inactive or deleted, they opted to make those system fields (created by / updated by) to just hold the string of the user id at that point in time. Observe.... (dictionary entry for task.sys_updated_by)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2024 04:34 AM
sys_updated_by isn't a reference to the user table. You need to do this through a script include, so you can query to the user table, find the user that updated and validate that the user isn't part of the assignment group.
The 'isMemberOf' now also has a hardcoded sys_id, which will always check on the same group.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2024 06:37 AM
Hi Mark thanks for your response,
I have tried using below code using script include but its not working.
Script Include: