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
Trueto 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=LegalThis query searches all published promotions and returns all promotions where
QMS_SCOPE_RULEis set toLegalthat contain the text contract.PromotionsScope=Legaltranslates toFieldText=MATCH{Legal}:QMS_SCOPE_RULEin the query.