You just need to send the field values required to create an Account record.If you don't have any custom validation rule,only send value for for Name field of account.
In response you will get the Id of account created.
Your Sample SOAP request should be something like below :-
You just need to send the field values required to create an Account record.If you don't have any custom validation rule,only send value for for Name field of account.
In response you will get the Id of account created.
Your Sample SOAP request should be something like below :-
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sf="urn:fault.enterprise.soap.sforce.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <soapenv:Fault> <faultcode>UNKNOWN_EXCEPTION</faultcode> <faultstring>UNKNOWN_EXCEPTION: Destination URL not reset. The URL returned from login must be set in the SforceService</faultstring> <detail> <sf:UnexpectedErrorFault xsi:type="sf:UnexpectedErrorFault"> <sf:exceptionCode>UNKNOWN_EXCEPTION</sf:exceptionCode> <sf:exceptionMessage>Destination URL not reset. The URL returned from login must be set in the SforceService</sf:exceptionMessage> </sf:UnexpectedErrorFault> </detail> </soapenv:Fault> </soapenv:Body> </soapenv:Envelope>
Vinit Sir, Jairaj Jadhav here... I hope you would have recognized me... I need your help on this topic. I want name as well with ID in response to create request. Is it possible? I tried multiple things but it didn't work.
In response you will get the Id of account created.
Your Sample SOAP request should be something like below :-
Go through below link to learn more :-
https://developer.salesforce.com/page/Sample_SOAP_Messages-create
If this helps,please mark it as best answer to help others :)
All Answers
In response you will get the Id of account created.
Your Sample SOAP request should be something like below :-
Go through below link to learn more :-
https://developer.salesforce.com/page/Sample_SOAP_Messages-create
If this helps,please mark it as best answer to help others :)
I am still facing some issue.
Can you please check mycode, I will wait for your suggestions.
This is the Request:
<<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:enterprise.soap.sforce.com" xmlns:urn1="urn:sobject.enterprise.soap.sforce.com">
<soapenv:Header>
<ns1:SessionHeader soapenv:mustUnderstand="0" xmlns:ns1="urn:enterprise.soap.sforce.com">
<ns2:sessionId xmlns:ns2="urn:enterprise.soap.sforce.com">00Dm00000000lfq!AQQAQBZdiW5_Wh7pVQdp4um126Kdf2M8OynqSfqR56OmdiZrER._bFe48Fvtm7Fp7e6Tj8G5xYGXIZj8hqNrUL8Bz8kZQ5bH</ns2:sessionId>
</ns1:SessionHeader>
</soapenv:Header>
<soapenv:Body>
<create xmlns="urn:enterprise.soap.sforce.com">
<sObjects xsi:type="ns3:Account" xmlns:ns3="urn:sobject.enterprise.soap.sforce.com">
<ns3:Name>Golden Straw</ns3:Name>
<ns3:CommercialName__c>Privately Held</ns3:CommercialName__c>
</sObjects>
</create>
</soapenv:Body>
</soapenv:Envelope>
The Response :
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sf="urn:fault.enterprise.soap.sforce.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<soapenv:Fault>
<faultcode>UNKNOWN_EXCEPTION</faultcode>
<faultstring>UNKNOWN_EXCEPTION: Destination URL not reset. The URL returned from login must be set in the SforceService</faultstring>
<detail>
<sf:UnexpectedErrorFault xsi:type="sf:UnexpectedErrorFault">
<sf:exceptionCode>UNKNOWN_EXCEPTION</sf:exceptionCode>
<sf:exceptionMessage>Destination URL not reset. The URL returned from login must be set in the SforceService</sf:exceptionMessage>
</sf:UnexpectedErrorFault>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
Thanks in Advance.
Open the WSDL file in notepad and see the Endpoint URL at the botton,you need to send request to that URL only.
Hope this helps!!
It is working fine.
I need your help on this topic.
I want name as well with ID in response to create request. Is it possible? I tried multiple things but it didn't work.
Please help!!!
How to get Soap envelope request and response with .net likw u above.?