Example - Inbox Destination for a Daily Schedule with a Prompt

This example shows how to run a daily schedule of a Web Intelligence document in the default format to an inbox. By default, the scheduled document is always sent to the sender.

Since the document contains a prompt, the request body also provides the response to the prompt. Prompt text is named "Enter State:" with value "Texas" on a data provider with "DP0" as identifier.

Example

POST <webiURL>/documents/8002/schedules

Request body:

<schedule>
    <name>nameOfSchedule</name>
    <format type="webi"/>
    <destination>
        <inbox/>
    </destination>
    <daily retriesAllowed="2" retryIntervalInSeconds="60">
        <startdate>2012-08-26T15:58:51.000+02:00</startdate>
        <enddate>2012-09-14T15:58:51.000+02:00</enddate>
        <dayinterval>1</dayinterval>
    </daily>
    <parameters>
        <parameter optional="false" type="prompt" dpId="DP0">
            <id>0</id>
            <technicalName>Enter State:</technicalName>
            <answer constrained="false" type="text">
                <values>
                    <value>Texas</value>
                </values>
            </answer>
        </parameter>
    </parameters>
</schedule>