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
Rathna DeshmukhRathna Deshmukh 

How to update look up fields using SOAP API\Enterprise wsdl

Hi,

I need to update few look up fields of Asset object using Update operation provided by enterprise wsdl.

Please share any example sample SOAP API message\xml if you have on how to update look up fields.

I am getting below error when  I try to update CreatedBy lookup field set up as look up field for User object.Please help.

<message>No fields provided in an external foreign key reference in entity: User</message>
Rathna DeshmukhRathna Deshmukh
Hi,

I need to update few look up fields of Asset object using Update operation provided by enterprise wsdl.

Please share any example sample SOAP API message\xml if you have on how to update look up fields.

I am getting below error when  I try to update CreatedBy lookup field set up as look up field for User object.Please help.

error:<message>No fields provided in an external foreign key reference in entity: User</message>

Below is the request I am trying.Its throwing error for CreatedBy field which is set up as look up field for User object.Please help.
<urn:update>
         <!--Zero or more repetitions:-->
         <urn:sObjects xsi:type="urn1:Asset">
            <urn1:Id>02iR0000001sw3SIAQ</urn1:Id>
            <Name>Test-update</Name>
            <Status>Cancelled</Status>
            <AccountId>001R000000pmmmaIAA</AccountId>
     <Product2Id>01t50000001vbw0AAA</Product2Id>
            <Active__c>true</Active__c>
            <PurchaseDate>2014-10-01</PurchaseDate>
            <UsageEndDate>2014-10-01</UsageEndDate>
            <Simos__c>11</Simos__c>
            <Price>11</Price>
            <CreatedBy>Bharat Raval</CreatedBy>
         </urn:sObjects>
      </urn:update>