/
† template_insert ( session, template xml )

† template_insert ( session, template xml )

Deprecated in API Version 2.7.24

template_insert ( session, template xml )

Is a function to create a new template from an XML file obtained from template_import ()

Input

parameters:

session: a token obtained by calling session_init ()

template: An xml template

Output

parameters:

ErrorMsg: any fault in the call, either in the validation of input parameters, errors in the connection to the database or any other error, this parameter returns the error message produced

Request

sample:

template_insert ( “LCAAAAAAAAAAAA”, “

<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<template></template>

” )

Response

sample:

<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<id>“{controller://{label/{source/}}template_id</id>

<ErrorMsg></ErrorMsg>

Notes:


Related content