loadFavorite()
The loadFavorite() function (server-side) loads a saved favorite configuration using its name, including the default favorite. It also sets the SOLE/FAVSTATUS predefined answer value to RETRIEVE for a single processing flow.
This function works independently of the settings selected in the CPQ Configurator Permissions field on the employee record to ensure that the favorite can always be loaded. For more information about favorite configurations, see Creating Favorite And Default Configurations.
Syntax
Use this syntax for the loadFavorite() function:
loadFavorite('favoriteName');
Return Value
The loadFavorite() function returns a promise that resolves to the object representing the loaded favorite configuration.
Parameters
The loadFavorite() function accepts the name of the favorite configuration as a required string parameter.