Loading
The Trailblazer Community is now read-only Read More
Media Cloud
Customize the Optimized Fetch Products Feature

Customize the Optimized Fetch Products Feature

Customize the optimized Fetch Products feature to show fewer or more options in the dropdown list, to require fewer or more characters before products are suggested, and so on.

Managed Package Icon This is an Advertising Sales Management on Managed Package feature. For Advertising Sales Management on Salesforce Platform, see Advertising Sales Management on Salesforce Platform.

REQUIRED EDITIONS AND USER PERMISSIONS
Available in: Lightning Experience
Available in: all editions
REQUIRED USER PERMISSIONS  
To access Media Cloud advanced features: MediaCloudPlus Runtime
To create, read, update, and delete Flexcards: Omnistudio Admin

This table lists the Flexcard name and Pagination Handler name for each media type.

Media Type Flexcard Name Pagination Handler
Digital sfiAdsDigitalGrid sfiAdsDigitalPaginationHandler
TV sfiAdsTvGrid sfiAdsLinearPaginationHandler
Print sfiAdsPrintGrid sfiAdsPrintPaginationHandler
Radio sfiAdsRadioParentGrid sfiAdsRadioPaginationHandler

To customize the optimization parameters for the fetch products feature, follow these instructions:

Limit the Number of Options in the Dropdown

By default, the number of options that appear in the dropdown list is 6. However, you can override this value and choose to show fewer or more options in the dropdown list. This customization is possible only if the isProductFetchServerEnabled custom setting either does not exist or has been disabled in the org.

Managed Package Icon This is an Advertising Sales Management on Managed Package feature. For Advertising Sales Management on Salesforce Platform, see Advertising Sales Management on Salesforce Platform.

  1. From the App Launcher, find an select OmniStudio FlexCards.
  2. Click the Flexcard for the media type for which you want to update the number of options in the drop-down list.
    To edit a version of a Flexcard, first deactivate that version of the card.
  3. F or the pagination handlers in the Flexcards for each media type, add a new attribute defaultProductsSuggestSize, and specify the value as the number of options that you want to be shown in the dropdown list on the media planning grid.
  4. Save your changes and activate the Flexcard.

Specify the Minimum Number of Characters Before Showing Suggestions

This customization is possible only for the columns on the media planning grid that have the typeaheaddatesuggest and typeaheadsuggest values for the type field. By default, for columns with the type set to typeaheaddatesuggest, the minimum number of characters typed before suggestions are shown is 1, and for columns with the type set to typeaheadsuggest, the value is 0.

Managed Package Icon This is an Advertising Sales Management on Managed Package feature. For Advertising Sales Management on Salesforce Platform, see Advertising Sales Management on Salesforce Platform.

  1. From the App Launcher, find and select OmniStudio FlexCards.
  2. Click the Flexcard for the media type for which you want to set the minimum number of characters to be entered before seeing the suggestions.
    To edit a version of a Flexcard, first deactivate that version of the card.
  3. In the Properties pane where the types typeaheaddatesuggest and typeaheadsuggest are specified, add a column configuration key named minCharsToSuggest, and set the value of this field to the desired numeric value.
  4. Save your changes, and activate the Flexcard.

Disable the Date Range in Columns on the Media Planning Grid

In the media planning grid, you can remove the data range from view through a boolean column configuration key. This customization is possible only for the columns with the type set to typeaheaddatesuggest.

Managed Package Icon This is an Advertising Sales Management on Managed Package feature. For Advertising Sales Management on Salesforce Platform, see Advertising Sales Management on Salesforce Platform.

  1. From the App Launcher, find and select OmniStudio FlexCards.
  2. Click the FlexCard for the media type for which you want to disable the date range in the columns on the media planning grid.
    To edit a version of a FlexCard, first deactivate that version of the card.
  3. Where the value of the type field is set to typeaheaddatesuggest, add a column configuration key named disableDateRange, and set the value to false.
  4. Save your changes, and activate the FlexCard.

Add Placeholder Text on the Media Planning Grid Text Input Fields

By default, the text box on the media planning grid for the Product list shows Enter Product Name and the text box for the wrapper shows Enter Channel Name. You can edit this placeholder text. This customization is possible only for columns with the type set to typeaheaddatesuggest and typeaheadsuggest.

Managed Package Icon This is an Advertising Sales Management on Managed Package feature. For Advertising Sales Management on Salesforce Platform, see Advertising Sales Management on Salesforce Platform.

  1. From the App Launcher, find and select OmniStudio FlexCards.
  2. Click the FlexCard for the media type for which you want to add placeholder text.
    To edit a version of a FlexCard, first deactivate that version of the card.
  3. Select the pagination handler in the FlexCard.
  4. Where the value of the type field is set to typeaheaddatesuggest or typeaheadsuggest, add a column key named suggestInputPlaceholder, and specify the text that you want to be shown in the text box on the media planning grid.
  5. Save your changes, and activate the FlexCard.

Add Label Text to the Media Planning Grid Text Input Fields

In the media planning grid, the default label for the product list is Product and that for the wrapper is Media Channel. These labels can be customized only for columns that are of the type typeaheaddatesuggest and typeaheadsuggest.

Managed Package Icon This is an Advertising Sales Management on Managed Package feature. For Advertising Sales Management on Salesforce Platform, see Advertising Sales Management on Salesforce Platform.

  1. From the App Launcher, find and select Omnistudio Flexcards.
  2. Click the Flexcard corresponding to the media type to which you want to add label text.
    Note
    Note To edit a version, make sure that you deactivate that version of the Flexcard.
  3. Select the custom Lightning web component. Make sure you select the one in the pagination card state that contains the columns data.
  4. In the Properties pane, for the attribute value where the type field is set to typeaheaddatesuggest or typeaheadsuggest:
    1. Add a suggestLabel column key.
    2. Enter the text that you want to appear in the text box on the media planning grid.
  5. Save your changes and activate the Flexcard.
 
Loading
Salesforce Help | Article