Invoke the MatchingRuleProcessor API

After you create one or more matching rules, you can invoke the MatchingRuleProcessor API and run the rules.

Before you begin

Role required: sn_customerservice_agent, sn_customerservice_manager, admin

About this task

The matching engine can be invoked using the processAndGetCandidates method of the matchingRuleProcessor class. Pass in the task record and the number of resources. The result is an array of resource sys_ids.

The matching rules are processed based on the number stored in the Execution Order field for each rule.

The result is a list of users (sys_ids), which you can use for case routing and assignment.