We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Minimize result of recommended actions in service operation workspace

kamade rohini
Tera Contributor

kamaderohini_0-1767705076069.png

Where can I put restrictions so that I should get only those articles which are published on last months.

I have checked every context and each rule but no clue.

1 ACCEPTED SOLUTION

-O-
Kilo Patron

I believe the recommended actions component ultimately calls the sn_nb_action.NextBestActionService script include to fetch recommendations.

The functionality is implemented in script include sn_nb_action.NextBestActionServiceImpl (which the former inherits).

One solution could be to re-implement method getRecommendations in sn_nb_action.NextBestActionService so that it calls the base getRecommendations method and returns the filtered results.

View solution in original post

1 REPLY 1

-O-
Kilo Patron

I believe the recommended actions component ultimately calls the sn_nb_action.NextBestActionService script include to fetch recommendations.

The functionality is implemented in script include sn_nb_action.NextBestActionServiceImpl (which the former inherits).

One solution could be to re-implement method getRecommendations in sn_nb_action.NextBestActionService so that it calls the base getRecommendations method and returns the filtered results.