justlooking
12 years agoNew Contributor
help inserting datasource variable into xml string
trying to drive data in a manner similar to this, but don't know how to insert variable into a string.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sat="http://tempuri.org/SatuitWebService/SatuitCRM_XML_API">
<soapenv:Header/>
<soapenv:Body>
<sat:AddActivity>
<!--Optional:-->
<sat:strUID>fletch</sat:strUID>
<!--Optional:-->
<sat:strPWD>jackass12</sat:strPWD>
<!--Optional:-->
<sat:xmlData><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
<tables>
<ptickler>
<row>
<icomkey>-1</icomkey>
<ibuskey>395</ibuskey>
<dcomment>${ActivitySource#dcomment}</dcomment>
<cactivity>Appointment</cactivity>
<cnoteudf3>New activity rah</cnoteudf3>
<cphase />
<cbphswitch />
</row>
</ptickler>
</tables>
]]></sat:xmlData>
</sat:AddActivity>
</soapenv:Body>
</soapenv:Envelope>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sat="http://tempuri.org/SatuitWebService/SatuitCRM_XML_API">
<soapenv:Header/>
<soapenv:Body>
<sat:AddActivity>
<!--Optional:-->
<sat:strUID>fletch</sat:strUID>
<!--Optional:-->
<sat:strPWD>jackass12</sat:strPWD>
<!--Optional:-->
<sat:xmlData><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
<tables>
<ptickler>
<row>
<icomkey>-1</icomkey>
<ibuskey>395</ibuskey>
<dcomment>${ActivitySource#dcomment}</dcomment>
<cactivity>Appointment</cactivity>
<cnoteudf3>New activity rah</cnoteudf3>
<cphase />
<cbphswitch />
</row>
</ptickler>
</tables>
]]></sat:xmlData>
</sat:AddActivity>
</soapenv:Body>
</soapenv:Envelope>