Configure force refresh for recommendations
Configure the Trigger Recommendation Refresh data broker to refresh and update the recommendations based on the results from UI events for precise recommendations. Similarly, use the
ForceRefreshRecommendations method for configuring an explicit refresh mechanism.
Before you begin
Role required: sn_nb_action.next_best_action_author, or admin
About this task
Prior to the Zurich family release, the recommendations often remain outdated due to refresh triggers being tied only to updates on primary context records. Starting with the Zurich family release, you can configure explicit and event-driven refreshes for various context updates beyond just the primary context table to improve recommendations relevance.
- Explicit refresh mechanism: Enables you to trigger recommendation refreshes manually, independent of internal context changes, addressing scenarios where event-driven updates are insufficient.
Call the
ForceRefreshRecommendationsmethod. TheForceRefreshRecommendationsmethod is shipped with the base system as part of the NextBestActionServiceImpl script include.ForceRefreshRecommendationsmethod:sn_nb_action.NextBestActionService().forceRefreshRecommendations(input.ruleContextSysIds, input.currentRecordSysId, input.refreshAllUsers); - Event-driven refresh: Implements automatic recommendations updates triggered by predefined system events such as attribute changes on related tables or user interactions like button clicks or tab navigation.
Configure the Trigger Recommendation Refresh data broker of a UI component in the UI builder. This data broker is shipped with the base system and is available for all the UI components of the record pages. Perform the following steps to configure this data broker.
Procedure
Result
When the configured component is triggered, the recommendations are refreshed and updated accordingly in the CSM/FSM Configurable Workspace.