- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-13-2022 08:50 AM
I am creating an UI action (sys_ui_action) in which I want to show the "Pending" button on the SCTASK (catalog item).
My condition is I want to show that button to a specific Assignment group.
How can I write the condition?
An error comes if I keep the sys_id of that assignment group.
Something like this....
isMemberOf(d800edadadada00u08d0a);
Solved! Go to Solution.
- Labels:
-
User Interface (UI)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-14-2022 05:45 AM
Hi,hope this resolved your issue,could you please mark the answer correct and helpful?
-Krupa.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-13-2022 08:56 AM
Hi,
Add name of the group like below or with current object:
gs.getUser().isMemberOf(current.assignment_group.toString())
gs.getUser().isMemberOf('All_Mexico_Users')
gs.getUser().isMemberOf('<sys_id of the group>')
-Anurag
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-04-2025 07:27 AM
Hi @Anurag Tripathi can you please help me to solve my issue current.caller_id.toString().isMemberOf(current.assignment_group.toString()). I need to check Werther the user in caller_id field is member of current.assignment_group.toString(). Please let me know if you had any ideas. Thanks in advanced.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-04-2025 07:56 AM
TRy this
current.caller_id.isMemberOf(current.assignment_group.toString())
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-13-2022 08:59 AM
Hi
Please use the below:
gs.getUser().isMemberOf('group sys_id')
Please mark the answer helpful and correct if it resolved your issue.
-Krupa