- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2025 08:00 AM
Can anyone help me to fix this code?
If Knowledge base is IT then the article view should be people zone view or else it should be default view.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2025 08:51 AM
Hello @Apaul , current is not accessible here. you can simply build the condition using condition builder as below.
you can click on the 'Show Related Fields' to dot walk to 'knowledge base fields'.
Regards,
Nishant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2025 08:51 AM
Hello @Apaul , current is not accessible here. you can simply build the condition using condition builder as below.
you can click on the 'Show Related Fields' to dot walk to 'knowledge base fields'.
Regards,
Nishant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2025 08:56 AM
I know i can do it, but i want to go with script as there are multiple conditions which needs to be satisfied. this is one of them. If i go with simple conditions instead of script, i might need to go with 4 or 5 rules.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2025 09:19 AM - edited 05-29-2025 09:20 AM
view rule runs before the list/form is loaded and hence it doesn't have access to current object
For your requirement you will have to create multiple view rules based on unique conditions.
Also check this link which talks about the workaround
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2025 02:43 AM
Did my reply answer your question?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader