How to hide the "New" list action button on Global table for specific users?

Joakim St_ckel
Tera Expert

Hello community!

I'm trying to hide the "New"-button, which is on Global table, and no specified View. Should also be added, this is a button that is visible in Configurable Workspace (if this even matters?). I found the button under "List Actions", but the record seems to point to sys_declarative_action_assignment (Action Assignment). It's also a UXF Client Action... No idea really what this means.
I'm not trying to hide it from everyone though, else I'd just inactivate it.

I just want to hide it from 1 specific Company. This company also uses 1 specific view only.
I've tried via the Client Condition, to specify "view != XXXXXX", but that didn't seem to have any effect at all...
Record condition has no fields that I could specify either...
I've got no clue what to do with a Script Condition though, maybe this could be a solution? But I've never done any Script Conditions before, and I can't seem to find any good examples of what those even look like when googling...

There's also no roles or such that would separate the companies... So can't go with that either...

Any kind of help, is more than appreciated. Thanks in advance.

1 ACCEPTED SOLUTION

We managed to solve it in the end with: javascript:gs.getUser().getCompanyID()!='sys_ID'; after a few attempts.

View solution in original post

3 REPLIES 3

Kalyani Jangam1
Mega Sage
Mega Sage

Hi @Joakim St_ckel 

 

If this is for specific user then you can use below condition

gs.getUserID() != 'User sys_id'

We managed to solve it in the end with: javascript:gs.getUser().getCompanyID()!='sys_ID'; after a few attempts.

Thank you for posting the solution. It helped me!! 😊