Support Article
Global Search option does not render more than 20 records
SA-105010
Summary
The Global Search option on the Customer Relationship Management for Health Care (CRMHC) Interaction portal does not return more than 20 records even if there are more records present. This occurs when Pega Customer Service 7.31 is installed on Pega 7.31.
Error Messages
Not Applicable
Steps to Reproduce
Perform a search for a keyword in the Global Search on the CRMHC Interaction portal.
Root Cause
The CPMSearchResultsWork activity fetches maximum of 20 records. The CPMSearchResultsWork activity inturn invokes the pzSearchResults activity to fetch the Search results on invoking it. The Param.allResults property is not set to True before invoking the pzSearchResults activity. Hence, the CPMSearchResultsWork activity fetches maximum of 20 records according to the .pyMaxWork property.
Resolution
Perform the following local-change in the CPMSearchResultsWork activity:
Set the Param.allResults property to True before invoking the pzSearchResults activity to fetch all the Search results.

The results are limited with the property Local.iCount>=Declare_CAApplicationSettings.WorkObjectSearchResults, instead of hardcoding to 20 after fetching the Search results. However, at the user end, Local.iCount>=20.

Published April 16, 2020 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.