Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

how to restrict UI action using condition if the user is member of particular assignment group

Are Kaveri
Tera Contributor

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' &&current.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

 

1 REPLY 1

Saurav11
Kilo Patron
Kilo Patron

Hello,

 

For the conditions to work go to sys_declarative_action_assignment table and there find the UI action Accept for your table.

 

Saurav11_0-1696615390749.png

 

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:-

 

Saurav11_1-1696615445921.png

 

Please mark my answer as correct based on Impact.