function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ravi_SFDCRavi_SFDC 

SOAP Integration1

Hi All,

I am trying to run an ​​​​​​ anonymous code as below in a string 
String XMLIn = '<?xml version="1.0" encoding="Windows-1252"?><Query xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance" xsd:noNamespaceSchemaLocation="businesobject.XSD"><Key>   <SalesOrder>H000055421</SalesOrder>   <Invoice></Invoice></Key><Option>    <IncludeStockedLines>Y</IncludeStockedLines><XslStylesheet/></Option></Query>';
instead of passing the SalesOrder ID <SalesOrder>H000055421</SalesOrder>, if i want to pass the dynamic value (like <![CDATA[]]>), so that i can fetch all the salesorder records from other system to salesforce. Please suggest and your help would be really appreciated.

Regards
​​​​​​​Ravi




 
SwethaSwetha (Salesforce Developers) 
HI Ravi,
Recommend reviewing https://salesforce.stackexchange.com/questions/34692/how-to-convert-an-dom-xmlnode-to-its-string-representation-in-order-to-get-cdata/35056#35056 Thanks