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
Maf_007Maf_007 

Creating XML from Salesforce fields

Hi,

 

Could anyone please provide me an example of creating an XML from field values of an object. I need to create this xml and send as string to a web service. Any suggestion also be appreciated.

 

Thanks

Satish_SFDCSatish_SFDC
If you use outbound messaging the XML is generated for you.

http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_om_outboundmessaging.htm

See if this helps.

Regards,
Satish Kumar
Please mark my answer as a solution if it was helpful so it is available to others as a proper solution.
If you felt I went above and beyond, please give me Kudos by clicking on the star icon.
Maf_007Maf_007

Hi I am not using outbound messaging. Its SOAP API where values are passed as string but that string has to be a standard XML file inorder for them to process and return a result. Any Ideas on that?