Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Salesforce REST API send and get Agreement Adobe Sign

New Here ,
Jul 09, 2019 Jul 09, 2019

Hello Everyone,

Is there any apex sample code that I can use that uses REST API to send agreement to adobe sign server and get the id ?

The thing I need is I don't need to mail it to the recipient just only a click in button it will show the agreement in the secure.na2.echosign.com website.

does this really need a REST?Please Help

Thank you

1.6K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Jul 11, 2019 Jul 11, 2019

Although it looks like our documentation needs an update to reflect this ...

https://helpx.adobe.com/sign/help/adobe_sign_for_salesforce_developer_guide.html

... the Apex global class echosign_dev1.EchoSignApiService has the method below, at least in v20+ of Adobe Sign for Salesforce.

    global static EchoSignApiService.AgreementViewUrl getViewAgreementUrl(Id agreementId)

You should be able to use this to get the view/manage page from Sign, given the agreementId, to get the AgreementViewUrl inner c

...
Translate
Adobe Employee ,
Jul 11, 2019 Jul 11, 2019
LATEST

Although it looks like our documentation needs an update to reflect this ...

https://helpx.adobe.com/sign/help/adobe_sign_for_salesforce_developer_guide.html

... the Apex global class echosign_dev1.EchoSignApiService has the method below, at least in v20+ of Adobe Sign for Salesforce.

    global static EchoSignApiService.AgreementViewUrl getViewAgreementUrl(Id agreementId)

You should be able to use this to get the view/manage page from Sign, given the agreementId, to get the AgreementViewUrl inner class which just has a viewUrl property.  For security reasons, the generated agreement URL only has a temporary lifespan so it generates a REST-HTTPS call to get a fresh URL from Adobe Sign services.

I'll add a task to our backlog to update the helpx documentation to reflect this.

If you want to link to the signing experience rather than the view/manage page, you will need to have used the  API to get the signing URL.

    global static List<EchoSignApiService.SigningUrl> getSigningUrls(Id agreementId)

With their of these, you will need to have called sendDocument(Id agreementId) first, which starts some background processes such that getViewAgreementUrl() and getSigningUrls() may not be immediately available so you'll need a retry mechanism.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines