As an example, administrators can create a query and product category record that–together–display featured products in the Staff View order process.
-
Create a query record.
-
In the tab bar, click
App Launcher, or in Salesforce Classic, click
Nimble AMS, Staff View, Button, All Tabs.
-
Click SOQL Queries.
-
Click New.
-
In
Label, enterFeatured. -
Click
Sharing Modeand select System. -
In
SELECT, enter:SQLId, Name, ListPrice__c, TrackInventory__c, InventoryOnHand__c, Status__c, (SELECT PriceClasses__c, DefaultPrice__c, EarlyPrice__c, LatePrice__c, Name FROM SpecialPrices__r)
-
In
SObject, enterProduct__c. -
In
WHERE, enter:SQLRecordType.Name = 'Merchandise' AND Id IN (SELECT Product__c FROM CategoryProductLink__c WHERE IsFeatured__c = true) AND Entity__c = :entityId
-
Click Save.
-
-
Create a product category record.
-
From Setup, enter
Custom Metadata Typesin theQuick Findbox, then select Custom Metadata Types. -
Click Manage Records next to the Product Category custom metadata type.
-
Click New.
-
In
Label, enterFeatured. -
In
Display Name, enterFeatured. -
In
Query, enterFeatured. -
Optionally, in
Display Order, enter a number to signify where within the list of categories this product category should be shown in the Staff View order process. The lower the number, the higher the name is shown on the page.The number should be 0 - 999.
Consider spacing out your numbers to accommodate future additions to the category.
Avoid:
Category 1:
1, Category 2:2, Category 3:3, Category 4:4Better:
Category 1:
10, Category 2:20, Category 3:100, Category 4:500
-
Click Save.
-