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

XML For Creating/Updating New Records



I am trying to plan out an integration with a third-party system and I need a sample XML for when a new record is created/updated in Salesforce (e.g. a new Account is created or a Contact record is updated). I know where to find the general XML schema but will need more than than just this. Is there a way to get a sample XML that I require?


Thanks for your help in advance.


It would be great if you elaborate what you actually looking for.Below is Sample xml for contacts and account.






Leon MorockiLeon Morocki

Did you mean the sample SOAP request for creating/updating records in salesforce?


Here is an example of such:


<soapenv:Envelope xmlns:xsi="" xmlns:soapenv="" xmlns:urn=""  xmlns:urn1="">
      <urn:create xmlns="">
        <sObjects xsi:type="FeedItem" xmlns="">



Thanks so much for your help so far. I'll try to be more specific. 


What I need is as follows- 


We want to integrate with another third party system via webservice. will be the books and records system, whenever there is an update made or any new account / contact is created, that has to be updated on the third party system To do this, we are thinking of making an API call from


When make a API call, to update our third party system I just wanted to know the XML which will be passed from SF to said third party.


The three in particular will be Accounts, Contacts, and a custom object. 

Leon MorockiLeon Morocki

Is third-party WebService a SOAP or REST?

If SOAP, you should probably have it's WSDL. You can make Salesforce parse the WSDL and generate wrapper classes for you, so that you can call remote WebService methods transparenty, just as any local method.


It'll be a SOAP. I'll try this out! Thanks!

Leon MorockiLeon Morocki

You can also import the WSDL into a WebService client, like SoapUI, and it will generate sample requests, so that you can see the exact XML that is going to be sent.




Can you please let me know from where I can create the xml of full record...


You help will be very appreciated..



Deepak Kapoor


May I know how can I get the XML of new created crecord in salesforce..