How to make Articles with 'Pending retirement' status visible to knowledge users at the Portal level

Fosii1
Kilo Contributor

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

 

 

 

1 ACCEPTED SOLUTION

Allen Andreas
Administrator
Administrator

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:

find_real_file.png

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!

View solution in original post

7 REPLIES 7

This is a better solution. Requires no modification to code. Anytime you can use a sys property you should. 

Better OOB Solution.