You need to sign in to do that
Don't have an account?
Bhushan burujwale
Unable to update email field using Soap API
Hi team,
I am using soap api to update email field of user object type using java program and SOAP UI tool.
In both cases I am getting success response value true but value is not reflecting on Salesforce side.
I am able to update other fields in same request.Only Problem with email field.
Please find below sample update request.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:partner.soap.sforce.com" xmlns:urn1="urn:sobject.partner.soap.sforce.com">
<soapenv:Header>
<urn:SessionHeader>
<urn:sessionId>validsessionId</urn:sessionId>
</urn:SessionHeader>
</soapenv:Header>
<soapenv:Body>
<urn:update>
<!--Zero or more repetitions:-->
<urn:sObjects>
<urn1:type>user</urn1:type>
<urn1:Id>validId</urn1:Id>
<email>validemailadress</email>
<CommunityNickname>nickname</CommunityNickname>
</urn:sObjects>
</urn:update>
</soapenv:Body>
</soapenv:Envelope>
Only nickname updated by above request
I am using soap api to update email field of user object type using java program and SOAP UI tool.
In both cases I am getting success response value true but value is not reflecting on Salesforce side.
I am able to update other fields in same request.Only Problem with email field.
Please find below sample update request.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:partner.soap.sforce.com" xmlns:urn1="urn:sobject.partner.soap.sforce.com">
<soapenv:Header>
<urn:SessionHeader>
<urn:sessionId>validsessionId</urn:sessionId>
</urn:SessionHeader>
</soapenv:Header>
<soapenv:Body>
<urn:update>
<!--Zero or more repetitions:-->
<urn:sObjects>
<urn1:type>user</urn1:type>
<urn1:Id>validId</urn1:Id>
<email>validemailadress</email>
<CommunityNickname>nickname</CommunityNickname>
</urn:sObjects>
</urn:update>
</soapenv:Body>
</soapenv:Envelope>
Only nickname updated by above request