We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6ec3f5 commit 304bcc5Copy full SHA for 304bcc5
Server-Side Components/Business Rules/Hide option from interceptor/script.js
@@ -0,0 +1,10 @@
1
+(function executeRule(current, previous /*null when async*/ ) {
2
+
3
+ var usr = gs.getUserID();
4
5
+ var userDept = (gs.getUser().getRecord().getValue('department'));//check for logged in user department
6
+ if (userDept != 'XYZ') { //is not XYZ. replace XYZ with relevant sys_id
7
+ current.addQuery('name', '!=', 'Private Task'); //This will remove Private Task from interceptor for all users with department other than XYZ
8
+ }
9
10
+})(current, previous);
0 commit comments