Open topic with navigation

# Example Static Promotion Rule

The following QMS rule returns when you send a query for promotions that contains one or more of the terms news, drama, or data in the query text. QMS then returns the IDOL Server document with the reference `4567389246372`.

    #DREREFERENCE static_promotion
    #DRETITLE url_redirect_1
    #DREDBNAME ACTIVATED
    #DREOUTPUTENCODING UTF8
    #DRELANGUAGETYPE englishUTF8
    #DREFIELD QMSAGENTBOOL="news OR drama OR data"
    #DREFIELD PROMOTION_NAME="static_promotion_1"
    #DREFIELD QMSTYPE="2"
    #DREFIELD QMS_PROMOTION_ITEMS="0"
    #DREFIELD QMS_PROMOTION_ITEM_COUNT="0"
    #DREFIELD QMSVALUE1="4567389246372"
    #DREFIELD ALWAYSACTIVE="True"
    #DRECONTENT
    NEWS DRAMA DATA
    #DREENDDOC

For example, the following query to QMS returns this promotion:

    action=Query&Text=drama&Promotions=True

© Copyright 2018 Micro Focus or one of its affiliates | Send documentation feedback 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