Open topic with navigation

# 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`.

© 2017 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to AutonomyTPFeedback@hpe.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm