Do UI policies not work in workspaces?

C_dric Chen
Tera Contributor

Greetings, people.

I just discovered something very weird about an app that I'm tasked to develop.

When I access the record from the data table while impersonating another user, the UI policies worked perfectly.

find_real_file.png

However, when I access the record from a workspace while impersonating the same user, the UI policies stopped working.

find_real_file.png

Did I miss something?

1 ACCEPTED SOLUTION

Marc Mouries
ServiceNow Employee
ServiceNow Employee

It depends on what workspace you are using. Are you using the out of the box Agent Workspace or is it a custom workspace? If it's the latter, UI policies work only if you use the Form component.

View solution in original post

5 REPLIES 5

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Cedric, You may find the below KB article helpful.

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0824430

 

- Pradeep Sharma

Ahmed Drar
Tera Guru
Tera Guru

UI policies work in workspaces. check if your UI policy applied to your workspace view

 

example

find_real_file.png

 

Thanks,

Ahmed

Please mark my answer as ✅ Correct / Helpful based on the Impact

Hello.

If I checked the "Global" box, should I uncheck it?

Marc Mouries
ServiceNow Employee
ServiceNow Employee

It depends on what workspace you are using. Are you using the out of the box Agent Workspace or is it a custom workspace? If it's the latter, UI policies work only if you use the Form component.