MAPI Manual

NAME

UPDATE_DIALOGMAP_BY_TEMPLATE_STENCIL

FUNCTION

Update a dialog map by template stencil

SYNOPSIS

dialogmap_id
dialogmap_template_id
dialogmap_template_stencil_id
xlabels_xml

DESCRIPTION

This function allows users to update a dialog map by template stencil.

Required Parameters

* action: UPDATE_DIALOGMAP_BY_TEMPLATE_STENCIL.
* dialogmap_id: ID of the dialog map.
* dialogmap_template_id: template ID of the dialog map.
* dialogmap_template_stencil_id: stencil ID of the dialog map.
* xlabels_xml: specifies 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'>+61412345678</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%2B61412345678%3C%2Ffield%3E".

RETURN DATA

The response contains the following attribute:
* msg: Success or error message.

ROLE PERMITTED

Manager

EXAMPLES

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

Request:

http://app02.yvntech.com/MapIHttpS/MapIS?action=UPDATE_DIALOGMAP_BY_TEMPLATE_STENCIL&dialogmap_id=1544&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%3EHello%20world%3C%2Ffield%3E&login_name=user@example.com&login_passwd=1111

Response:

<result tftype='1' infotype='0'>
    <field name='msg'>SUCCESS</field>
</result>

TIPS

ENVIRONMENT

AUTHOR

YVN Tech

SEE ALSO

DIALOGMAP_UPDATEMAP, ADD_DIALOGMAP_BY_TEMPLATE_STENCIL

Mweb v2.0 YVNTECH 2014