Posted: 31 Jul 2017 22:39 EDT Last activity: 28 Aug 2017 22:58 EDT
How to disable instances of certain case type being added to Recents
I have a case type which is configured as a 'Temporary object' in case creation settings. When I launch actions on this case type, it creates a temporary WO as expected but at same time it adds "New" to Recents list. Could anyone suggest how to avoid this? For this particular case type I do not want its instances beings added to Recents list.
We have achieved a similar requirement by customizing the when condition 'pyShowRecents'. We have saved this when condition in our ruleset and filtered few classnames that shouldn't be appearing on recents list.
Thank you Sri. Overriding pyShowRecents has worked.
One challenge with this solution is that if this pyShowRecents rule gets enhanced by Pega in a future release, those enhancements will be masked by overriding version in my application ruleset. Is there a easy way to identify such overrides other than Application -> Development -> Rule Overrides wizard (usability of this wizard is very poor)?
Yup, that is always there with rule overrides. The best way is to keep track of those changes. Otherwise, you might have to hit it the hard way of designing your own recents. This depends on the time and the priority of the requirement by your business.
How can a temporary object even be called up from the recents-list even if you wanted to? It's temporary so has no handle, right? Or, does it perhaps appear in the recents-list with no clickable handle?
Temporary object appears in Recents with clickable link. Following is the RecentList item from data page (Declare_pzRecentsCache).
Case Name - Apply
pyExecute page of above recents item:
pyActionAPI page under above pyExecute page:
I have attached a screenshot showing 'New' link in Recents shown on portal: RecentForTemporaryObject.png
I can switch between the actual case and temporary case shown in the Recents. For certain case types, we do not want to see this 'New' link being added to Recents. For certain case types we do like this behaviour as user can switch between New and other cases being opened recently.
Please let me know if you need any further information.