You need to sign in to do that
Don't have an account?
Dharshini D 1
Create Soap Api
I am not able to create the account...
please someone check my code
<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>
<urn:SessionHeader>
<urn:sessionId>00D2x000002yvFf!ARYAQIRzVOQMfwTIclLQcjnQ8UEmrEISpX4wceiXQzDe1W7GA3Xznh94Vq0_gIi3cc2eNRPWzH.fXH6XxkGy_t300q9fGhBn</urn:sessionId>
</urn:SessionHeader>
</soapenv:Header>
<soapenv:Body>
<urn:create>
<urn:sObjects xsi:type="urn1:Account" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Name>Bluebeards Grog House</Name>
<Description>It is better than Blackbeards.</Description>
</urn:sObjects>
</urn:create>
</soapenv:Body>
</soapenv:Envelope>
Output window:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="urn:enterprise.soap.sforce.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<LimitInfoHeader>
<limitInfo>
<current>15</current>
<limit>15000</limit>
<type>API REQUESTS</type>
</limitInfo>
</LimitInfoHeader>
</soapenv:Header>
<soapenv:Body>
<createResponse>
<result>
<errors>
<message>Check State</message>
<statusCode>FIELD_CUSTOM_VALIDATION_EXCEPTION</statusCode>
</errors>
<errors>
<message>Check state</message>
<statusCode>FIELD_CUSTOM_VALIDATION_EXCEPTION</statusCode>
</errors>
<id xsi:nil="true"/>
<success>false</success>
</result>
</createResponse>
</soapenv:Body>
</soapenv:Envelope>
please someone check my code
<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>
<urn:SessionHeader>
<urn:sessionId>00D2x000002yvFf!ARYAQIRzVOQMfwTIclLQcjnQ8UEmrEISpX4wceiXQzDe1W7GA3Xznh94Vq0_gIi3cc2eNRPWzH.fXH6XxkGy_t300q9fGhBn</urn:sessionId>
</urn:SessionHeader>
</soapenv:Header>
<soapenv:Body>
<urn:create>
<urn:sObjects xsi:type="urn1:Account" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Name>Bluebeards Grog House</Name>
<Description>It is better than Blackbeards.</Description>
</urn:sObjects>
</urn:create>
</soapenv:Body>
</soapenv:Envelope>
Output window:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="urn:enterprise.soap.sforce.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<LimitInfoHeader>
<limitInfo>
<current>15</current>
<limit>15000</limit>
<type>API REQUESTS</type>
</limitInfo>
</LimitInfoHeader>
</soapenv:Header>
<soapenv:Body>
<createResponse>
<result>
<errors>
<message>Check State</message>
<statusCode>FIELD_CUSTOM_VALIDATION_EXCEPTION</statusCode>
</errors>
<errors>
<message>Check state</message>
<statusCode>FIELD_CUSTOM_VALIDATION_EXCEPTION</statusCode>
</errors>
<id xsi:nil="true"/>
<success>false</success>
</result>
</createResponse>
</soapenv:Body>
</soapenv:Envelope>
Review below links which can help you.
https://salesforce.stackexchange.com/questions/226064/use-soap-api-creating-account-issue
http://sfdccodepractices.blogspot.com/2017/07/use-soap-api.html
Thanks,
Vinay Kumar