Integration with ADOBE E-sign From Salesforce

Ashish Sharma
Nov 6 · 4 min read

Overview:- This blog is about to integrate an Adobe document to the Salesforce.

As we know that Salesforce does provide lot’s of features to integrate different application and get high performance in it.

Adobe integration is used for two way authentication process to get auditable and authenticate the document by the help of a manual signature process.

The process of Adobe integration is to send a document to the relevant user for getting a signature verified by email. It is a two-way process where Salesforce sends a document to the user by email and get again signed document for verification.

Salesforce To Adobe integration process:-

In this process firstly we collect all information about the Adobe And full fill the all requirements which are below:-

  1. Firstly we register a developer Account on adobe echo-sign on this URL:-

https://acrobat.adobe.com/in/en/sign/developer-form.html

Adobe also provides free trial account for 14 days after 14 days it will be expired.

2) If you have created your developer account successfully, then next Step is you need to create an Application inside your account to get Application Id(Customer ID) and Customer secrete.

Steps to creating an application: -login into your Adobe account select API from top menu bar as shown in the figure:-

If you are already an Enterprise customer, you may not see the API link. In that case, click Account to proceed.

After selected API then now select API Application.

If u have selected that Option then you will see (+) icon in right corner

Select the Create (+) icon for creating an application

Select this Icon then you have A form to create an application fill the necessary information in your App then click save.

When you create a new app, you need to choose the right domain:

1)CUSTOMER: Apps for internal use and testing. Use this domain if you need your app to access data only from your account.

2)PARTNER: Apps for production and public use. Use this domain if you need your app to access data in any Adobe Sign account.

Now you have created your Application successfully.

Next Step is to Configure Auth for the application:-

1)Select API Applications to view the list of apps you have created; then select your app to view its action menu.

2)Select View/Edit to get the Application ID and secret.

Note down the app’s Application ID and secret. You will be using this information to issue access tokens in the Adobe Sign API.

Configure your Auth:-

Select Configure OAuth for Application to enable scopes.

Remember here your redirect URL must valid URL in which you get Authorization code in the query parameter.

Now you are all set to invoke the Sign APIs from your client-side apps.

Now we are ready for getting an Authorization code and access token from Authorization

Get Authorization code:-

Generate Authorization Code using the following link. The Client ID, Redirect URI & scopes must be the valid scope which is in your applications, put your scopes in the following URL as selected in the application (Avoid space in the following URL and the Shard like ‘NA1’ is as per the Adobe Sign account belongs to):

Put this URL into the browser window it redirects your redirect URL and

get the Authorization code.

select Allow Access to receive the authorization code

Your Authorization code is shown below in parameter

Now the final Step we want Access token and refresh token for complete your integration and API calls.

Following code is Shown below, with the help of this code we get access token and refresh tokens.

HttpRequest req=new HttpRequest();

req.setEndpoint(url);

req.setMethod(‘POST’);

req.setHeader(‘Content-Type’,’application/x-www-form-urlencoded’); req.setBody(‘grant_type=authorization_code&redirect_uri=https://patidar123ohk-dev-ed--c.ap5.visual.force.com/apex/DemoEchoAdobe&client_secret='+Client_Secrete__c+'&client_id='+Client_ID__c+'&code='+oAuthCode);

Http http=new Http();

HttpResponse Resp=http.send(req);

System.debug(‘ — — — — — — — — — — — — — — — ‘+Resp.getBody());

Now you have access token and refresh tokens in the json response format, with the help of tokens you can go for the API calls.

Your json response is such like that.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade