Mark HR case confidential and once its mark true then case should be visible to HR admin

aastha3
Giga Contributor

Created a check box for HR case confidential . When its checked- true then the HR case should be only visible to HR admin.

I dont want to go with ACL . Any other way to approach this?

Thanks

 

14 REPLIES 14

Hi,

why insert/update BR is required? you just want to restrict the records visibility

Regards

Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

okay yeah will try with query BR and in when to run I have already mentioned when mark confidential is true . Also where to mention gs.hasRole(hr_admin);

It should work the other way too ->

If the mark confidential is unchecked it should  be visible to everyone.

 

aastha3
Giga Contributor

Its not working .

aastha3
Giga Contributor

Its not working ankur

Its not working Ankur.