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
Bhushan burujwaleBhushan 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