- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2019 11:04 AM
I search the forum and the only solution i saw is on this link and about 3years old
https://community.servicenow.com/community?id=community_question&sys_id=07000721db98dbc01dcaf3231f961924
I dont want to go this route. Is there any other alternative ?
Thanks
Phil
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2019 01:44 PM
Hi,
Not fully sure if this is what you're asking, but the search source for Knowledge for the Portal is only set to look at "Published" for the workflow state, so you should be able to add a simple "OR" query to get it working how you want:
Service Portal > Search Sources > Knowledge, look for this:
can change out line 5 with:
kb.addEncodedQuery('workflow_state=published^ORworkflow_state=pending_retirement');
Please mark reply as Helpful/Correct. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2019 06:06 AM
Another solution is described in https://hi.service-now.com/kb_view.do?sysparm_article=KB0746155
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2019 06:50 AM
This is a better solution. Requires no modification to code. Anytime you can use a sys property you should.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2022 05:05 AM
Better OOB Solution.