MAPI Manual

NAME

ADD_DIALOGMAP_BY_TEMPLATE_STENCIL

FUNCTION

Add dialog map by template stencil

SYNOPSIS

dialogmap_template_id, dialogmap_template_stencil_id, xlabels_xml

DESCRIPTION

This function allows users to add a dialog map using a template stencil.

Required Parameters

* action: ADD_DIALOGMAP_BY_TEMPLATE_STENCIL.
* dialogmap_template_id: template ID.
* dialogmap_template_stencil_id: stencil ID.
xlabels_xml: specifies the values for each xlabel within the stencil. This whole value must be URL encoded. For example, the value is "<field xlabel_id='1'>Please rate our service.</field><field xlabel_id='2'>+61411111111</field>"; after encoding, this value becomes "%3Cfield%20xlabel_id%3D%271%27%3EPlease%20rate%20our%20service.%3C%2Ffield%3E%3Cfield%20xlabel_id%3D%272%27%3E%2B61411111111%3C%2Ffield%3E".

RETURN DATA

The response contains the following attribute:
* mcp_dialogmap_id: ID of the newly added dialog map.

ROLE PERMITTED

Manager

EXAMPLES

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

Request:

http://app02.yvntech.com/MapIHttpS/MapIS?action=ADD_DIALOGMAP_BY_TEMPLATE_STENCIL&dialogmap_template_id=3&dialogmap_template_stencil_id=1&xlabels_xml=%3Cfield%20xlabel_id%3D%271%27%3E100%3C%2Ffield%3E%3Cfield%20xlabel_id%3D%273%27%3EHelloWorld%3C%2Ffield%3E&login_name=user@example.com&login_passwd=1111

Response:

<result tftype='1' infotype='0'>
    <field name='mcp_dialogmap_id'>568</field>
</result>

TIPS

ENVIRONMENT

AUTHOR

YVN Tech

SEE ALSO

GET_DIALOGMAP_TEMPLATE_STENCIL

Mweb v2.0 YVNTECH 2014