Open topic with navigation

# Query for Promotions

Use the following procedure to query both static and dynamic promotions.

To query for promotions

- Send queries with the `Promotions` parameter set to `True` to return promotions.

For example:

    action=Query&Text=phone&Promotions=True

This query searches all published promotions and returns all promotions that match the word phone.

When you query for promotions, only the promotion documents return.

To use scope rules in your query

- Send queries with the `PromotionsScope` parameter set to the value of the scope rules that you want to match on.

  For example:

  `action=Query&Text=contract&Promotions=True&PromotionsScope=Legal`

  This query searches all published promotions and returns all promotions where `QMS_SCOPE_RULE` is set to `Legal` that contain the text contract. `PromotionsScope=Legal` translates to `FieldText=MATCH{Legal}:QMS_SCOPE_RULE` in the query.

Refer to the QMS Reference for more information.

Related Topics

- Static Promotions
- Dynamic Promotions
- Scope Rules

© 2018 EntIT Software LLC, a Micro Focus company | Send documentation feedback to Micro Focus 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 swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm