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
PauloPaulo 

External foreign key reference error

I'm trying to create an agreement using the echosign appexchange application in salesforce but I am receiving the error below when I try to create the object.

// Create Agreement object
Sforce.SIGN_Agreement__c sfAgreement = new Sforce.SIGN_Agreement__c();

// Set Agreement object properties 
sfAgreement.Recipient__r = contact; 
sfAgreement.Name = "Testing";
sfAgreement.sfAgreement.SignatureType__c = "e-Signature";

More than 1 field provided in an external foreign key reference in entity: Contact
SuperfellSuperfell
you probably want sfAgreement.Recipent__c = contact.id instead of the __r setting.
PauloPaulo
It worked.
 
Thanks Simon!