2022

Salesforce

Creating Case record using Salesforce SOAP API using Enterprise WSDL

1. Do Login request and get the Session Id. Request URL: https://login.salesforce.com/services/Soap/c/55.0 Request Body: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:enterprise.soap.sforce.com"> <soapenv:Header> <urn:LoginScopeHeader> <urn:organizationId>00D8c0000015heN</urn:organizationId> </urn:LoginScopeHeader> </soapenv:Header> <soapenv:Body> <urn:login> <urn:username><Your Username></urn:username> <urn:password><Your Password></urn:password> </urn:login> </soapenv:Body> ....

Salesforce

Salesforce FIELD_INTEGRITY_EXCEPTION, There’s a problem with this country, even though it may appear correct. Please select a country/territory from the list of valid countries.: [BillingCountry] Exception

System.DmlException: Update failed. First exception on row 0 with id 0018c000026ZmPmAAK; first error: FIELD_INTEGRITY_EXCEPTION, There's a problem with this country, even though it may appear correct. Please select a country/territory ....