how to restrict UI action using condition if the user is member of particular assignment group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2023 10:07 AM
Hi,
I have below requirement.
there is a UI action called Accept
visible = when state is Work in progress and logged in user should be present in the 'AG_HR_Group'.
this is working fine in native UI and not working on configurable workspace.
condition: (current.getValue('state') != '3' &¤t.getValue('state') !='4') && ( gs.getUser().isMemberOf(current.assignment_group.getDisplayValue()))
there is another issue for redirection after clicking the button.
action.setRedirectURL(current);
the below URL is not working on workspace.
Please help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2023 11:04 AM
Hello,
For the conditions to work go to sys_declarative_action_assignment table and there find the UI action Accept for your table.
Then Open the record for your UI action click on advanced view from related links the condition tab will come add your condition over there:-
Please mark my answer as correct based on Impact.