OMS Web App: Search order by ID using the Rules SDK
Author:
Randy Chan
Changed on:
5 Sept 2025
Key Points
- This is the use case where users can look up OMS orders using order ID.
- Typically, the
`orderById`GraphQL query is used to look up an order by ID. However, only one order can be searched at a time, and there is no wildcard search. - This article provides an alternative approach that allows users to search for orders by ID or even with a wildcard, leveraging the new
`ref2`field on the order entity included in the Enhanced Order Lookup and Tagging Capabilities release.

Steps
Steps to achieve the outcome
- Create a custom rule
`CopyOrderIdToOrderRef2`(by using the Rules SDK) - Add the rule
`CopyOrderIdToOrderRef2`to the order workflows - Extend the Order list screen manifest to include fc.filterPanel with ref2
- Test the outcome
Create a custom rule, CopyOrderIdToOrderRef2
- Open the Rules SDK and create a new Java rule:
`CopyOrderIdToOrderRef2` - Compile to a jar and install the plugin onto your account.
- Use GET: {{fluentApiHost}}/orchestration/rest/v1/plugin to check the new available rule.

Add the rule CopyOrderIdToOrderRef2 to the order workflows

Save the change.
Extend the Order list screen manifest to include fc.filterPanel with ref2
`fc.mystique.manifest.oms.fragment.ordermanagement`First, add `fc.filterPanel` above the `fc.list`:Then, for testing purposes, add the following order id and ref2 to the `fc.list` attributes section:Save the change