I have created a custom send for signature button for a specific Adobe Agreement in Salesforce lightning using the following:

{!URLFOR('/apex/echosign_dev1__AgreementTemplateProcess', null, [masterId = myCustomObject__c.Id, templateId='a2aJA0000000eVBYAY'])}

However, when trying to generate the agreement from myCustomObject, I get the error:

Didn't understand relationship 'myCustomObject__c' in field path. If you are attempting to use a custom relationship, be sure to append the '__r' after the custom relationship name. Please reference your WSDL...

I have read through a past post that is very similar but did not see an actual resolution. Has anyone else encountered this issue?

  • try removing the spaces around the equals sign
    – Nick C
    Dec 14, 2022 at 22:03
  • Thanks for the suggestion, but no luck
    – stelts
    Dec 16, 2022 at 17:20

1 Answer 1


Change myCustomObject__c to myCustomObject__r.Id.

When you're pulling fields like that you have to use __r instead of __c if you're referencing an object from a different object.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .