IBM Support

How to sort the search results of a list API using extended attributes?

Question & Answer


Question

How to sort the search results of a list API using extended attributes?

Answer

Reference: MCF v8.0

Sterling provides the ability to sort the search results of list APIs using extended attributes. To do this:

1. The extended attribute must be a part of the output template of the list API for which the sort functionality is desired. Please refer the Customization Guide for more details on extending the output template.

2. The extended attribute must be passed within the <OrderBy> element as follows.

<OrderBy>
    <Extn>
        <Attribute Name="<Extn Attribute>" />
    </Extn>
</OrderBy>

[{"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Mapping and Translation","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Historical Number

HTG2948

Document Information

Modified date:
16 June 2018

UID

swg21563058