You need to sign in to do that
Don't have an account?

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