Query Manipulation Server 26.2
Query Manipulation Server Help

# Scope Rules

You can use scope rules with Static Promotion Rules and Dynamic Promotion Rules to specify that a promotion is relevant to a particular set of users. You can then specify in your promotions queries that you want to return only promotions that match the text that you specified as the scope rule. For example, you might want set up a scope rule for promotions that are of particular relevance to the Human Resources and Legal departments of your company; you can then specify in your query that only promotions that match that scope rule should return.

To set up scope rules

- Add the `QMS_SCOPE_RULE` field to the IDX file for your promotion rule. Set the value of the field to the term that you want to match on when you query the Promotion Agentstore. You can create multiple `QMS_SCOPE_RULE` fields to specify multiple values. For example:

      #DREFIELD QMS_SCOPE_RULE="HR"
      #DREFIELD QMS_SCOPE_RULE="Legal"

To use scope rules in your queries

- Send queries with the PromotionsScope parameter set to a comma-separated list of terms that you want to match on when you query the Promotion Agentstore, as specified in the `QMS_SCOPE_RULE` fields.

  QMS applies only rules that match at least one of the values in the specified PromotionsScope.

Copyright 2026 Open Text
Version 26.2 | Last updated April 2026

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery Query Manipulation Server 26.2

Topic Title: Scope Rules