IBM Support

How to setup item attribute based Customer Entitlements

Question & Answer


Question

What are the steps to setting up an attribute based Customer Entitlement rule to be used by the search catalog index?

Cause

The searchCatalogIndex API is used by several Sterling Applications (Field Sales, Web Channel, COM, SOM) to retrieve the catalog items. The following steps are needed to allow the searchCatalogIndex API to implement item attribute based entitlement.

Note: Test Customer Entitlements will work without the 'For Filter' selection in Step 3 and prior to the search index being rebuilt. The searchCatalogIndex API will not recognize the item attribute without the 'For Filter' be selected.

Answer

The following steps are needed to setup a Customer Entitlement rule to restrict products which have a specific attribute.

1. Enable the customer entitlements for the selected organization.
- Applications Manager > DOM > Cross Application > Customer > Customer Entitlement
- Set 'Enforce Customer Entitlements' to either Item Entitlement rules assigned to Customer or Intersection of Item Entitlement Rules and Pricelists assigned to Customer

2. Create the Item Attribute which will be used for the Customer Entitlement Rule
- Sterling Business Center > Manage Attributes > Create Attribute

3. Assign the Item Attribute to the categories which contain the items being entitled
- Sterling Business Center > Manage Catalog > Select Catalog > Select Category >Manage Attribute Assignment
When adding the Attribute, make sure to select 'For Filter'. If this is not selected the Search Index will not use the attribute for entitlement.

4. Add the attribute to the items which the Customer will be entitled to
- Find and open the item(s) > Manage Attribute Values > Add the attribute

5. Create the Customer Entitlement Rule based on the created attribute
- Sterling Business Center > New Entitlement
- Enter the Entitlement Id, Description, Effective Dates and Save
- On the Item tab of the newly created Entitlement Rule select the following:
Create Entitlement item list by:
Including all items (Choose this option if you want all items with the exception of those with the attribute)
Excluding all items (Choose this option if you want only the items with the assigned attribute)
Then apply the following Criteria:
Include / Exclude all items that 'have the attribute'
Select the newly created attribute
Note: You can additionally choose a Customer Assignment

6. Initiate a search index build. (see Sterling Infocenter for details)

7. Activate the new search index. (see Sterling Infocenter for details)

8. Test your newly created Customer Entitlement Rule using the searchCatalogIndex API.
Sample Input:
<CatalogSearch CallingOrganizationCode="<Your Organization">
<Item><CustomerInformation CustomerId="<Customer Name>"/></Item>
</CatalogSearch>

Result: The Customer Entitlement Rule will be used to limit the items returned.









[{"Product":{"code":"SS6PEW","label":"Sterling Order Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Documentation","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"9.2;9.1","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}},{"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":" ","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"9.0","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
16 June 2018

UID

swg21617743