MAPI Manual

NAME

GET_DIALOGMAP_BY_TEMPLATE_STENCIL

FUNCTION

Get a dialog map by template stencil

SYNOPSIS

dialogmap_id, dialogmap_template_stencil_id

DESCRIPTION

This function allows users to get the details of a dialog map by template stencil. The details include values for each xlabel within the stencil.

Required Parameters

* action: GET_DIALOGMAP_BY_TEMPLATE_STENCIL.
* dialogmap_id: ID of the dialog map.
* dialogmap_template_stencil_id: ID of the template stencil.

RETURN DATA

The response contains the following attributes:
* mcp_dialogmap_template_id: template ID of the dialog map.
* mcp_dialogmap_template_stencil_id: stencil ID of the dialog map.
* mcp_dialogmap_template_stencil: contains a list of fields of the stencil.
* xlabel_id: value of each field within the stencil.

ROLE PERMITTED

Manager

EXAMPLES

The following example shows a successful HTTP GET request and response.

Request:

http://app02.yvntech.com/MapIHttpS/MapIS?action=GET_DIALOGMAP_BY_TEMPLATE_STENCIL&dialogmap_id=1352&dialogmap_template_stencil_id=1&login_name=user@example.com&login_passwd=1111

Response:

<result tftype='1' infotype='0'>
    <resultset name="mcp_dialogmap">
        <row>
            <field name="mcp_dialogmap_template_id">3</field>
            <field name="mcp_dialogmap_template_stencil_id">1</field>
            <resultset name="mcp_dialogmap_template_stencil">
                <row>
                    <field value_title="" xlabel_id="1">0</field>
                    <field value_title="" xlabel_id="2">2</field>
                    <field xlabel_id="3">Thank you [%name%], Please rate our service 1~5</field>
                    <field xlabel_id="4">1</field>
                    <field xlabel_id="21">+61411111111</field>
                    <field xlabel_id="22">Got a bad rating from customer</field>
                    <field xlabel_id="32">Thanks for your rating</field>
                    <field xlabel_id="42">Thank you! please like us on Facebaook</field>
                    <field xlabel_id="52">Sorry to hear that, can you tell me more?</field>
                    <field value_title="" xlabel_id="61">3</field>
                    <field xlabel_id="62">Thank you! please like us on Facebaook</field>
                    <field xlabel_id="71">customer feedback: [%reply_content%]</field>
                    <field xlabel_id="72">+61411111111</field>
                </row>
            </resultset>
        </row>
    </resultset>
</result>

TIPS

ENVIRONMENT

AUTHOR

YVN Tech

SEE ALSO

LIST_DIALOGMAPS, DIALOGMAP_GETMAP, LIST_DIALOGMAP_TEMPLATE_STENCILS

Mweb v2.0 YVNTECH 2014