- 18 Nov 2024
- 18 Minutes à lire
- SombreLumière
- PDF
Customizing OneSpan Sign Embedded Integration for Salesforce
- Mis à jour le 18 Nov 2024
- 18 Minutes à lire
- SombreLumière
- PDF
This section discusses the following topics, which are relevant to customizing your installation of OneSpan Sign Embedded Integration for Salesforce:
OneSpan Sign also has an out-of-the-box Integration Platform that allows you to use a single solution to connect eSignatures to your favorite business applications in an easy, secure, and cost-efficient way. For more information, see OneSpan Sign With Salesforce.
Adding a Transaction's Related List to an Object's Page Layout
Automating Transaction Creation in Salesforce Lightning Experience
Connecting Salesforce to your OneSpan Sign Instance
To connect Salesforce to your OneSpan Sign instance:
From Salesforce, search for the OneSpan Sign app. This opens the OneSpan Sign Embedded Integration for Salesforce app.
On the OneSpan Sign Embedded Integration for Salesforce menu, click the Admin tab. The Admin page appears.
If you are already connected to a OneSpan Sign environment, the Website URL on the Configuration tab displays the OneSpan Sign URL to which the application points. If you want to change this environment:
Click Disconnect and click Continue.
Select the appropriate Environment from the drop-down list:
US Production: apps.esignlive.com
US Classic Interface Production: apps.e-signlive.com
US Government: signer-gov.esignlive.com
Canada Production: apps.e-signlive.ca
AU Production: apps.esignlive.com.au
EU Production: apps.esignlive.eu
US Sandbox: sandbox.esignlive.com
US Classic Interface Sandbox: sandbox.e-signlive.com
US Government: signer-sandbox-gov.esignlive.com
Canada Sandbox: sandbox.e-signlive.ca
Configurable: The user must configure a custom Website URL.
If you select Configurable, you must also click the Click Here link in the Remote Site Settings to add the endpoint's domain in Salesforce's Remote Site Settings. Clicking the link opens the New Remote Site page.
Provide your OneSpan Sign password or API key, and click Connect. This will validate the API key with: (1) the server defined in the Website URL; (2) the email address of the current user. Salesforce should now be connected to your OneSpan Sign instance.
Managing Custom Settings
To manage various Custom Settings in Salesforce :
Log in to OneSpan Sign Embedded Integration for Salesforce and click the Admin tab.
Selecting Display Languages
While OneSpan Sign Embedded Integration for Salesforce supports a variety of languages (listed below) you may wish to only make a few of these languages available to your users wherever users can make a language selection (for example, when creating a transaction). To customize the list of languages to be displayed, use the following procedure.
To select the languages to be displayed wherever users can make a language selection:
On the OneSpan Sign Embedded Integration for Salesforce menu, click the Admin tab. The Admin page appears.
In the Languages section use the Add and Remove buttons to change the languages that will be made available to your users.
Use the Up and Down arrows to set the order in which languages will be displayed to a user.
To set a default language, move that language to the top of the Displayed Languages list.
The following languages are currently supported in OneSpan Sign Embedded Integration for Salesforce:
Language | Value in the Code |
---|---|
български (Bulgarian) | [bg] |
English (United States) | [en] |
English (United Kingdom) | [en-GB] |
Dansk (Danish) | [da] |
Deutsch (German) | [de] |
Español (América Latina) | [es] |
Español (España) | [es-ES] |
Français (French) | [fr] |
Italiano (Italian) | [it] |
Nederlands (Dutch) | [nl] |
Norsk - Bokmål (Norwegian) | [nb] |
Português (Portuguese) | [pt] |
Polski (Polish) | [pl] |
Română (Romanian) | [ro] |
Pусский (Russian) | [ru] |
Ελληνικά (Greek) | [el] |
中文简体 (Chinese - Simplified) | [zh-CN] |
中文繁體 (Chinese - Traditional) | [zh-TW] |
日本語 (Japanese) | [ja] |
한국어 (Korean) | [ko] |
اللغة العربية (Arabic) Available only in the Signer Experience | [ar] |
Integrating with Chatter
Chatter is a social-networking tool in Salesforce that lets users work together, talk to each other, and share information — all in real time. Integrating Chatter with OneSpan Sign Embedded Integration for Salesforce enables connector users to access this built-in Notification Center. Users can choose to be notified when a transaction/template state changes, and they can select which notifications they will receive.
This section describes:
Enabling Chatter Feed Tracking for Transaction/Template Objects
To enable this feature, your organization must have enabled Chatter. If you have installed OneSpan Sign Embedded Integration for Salesforce for the first time, this feature is already enabled. However, if you are upgrading from a previous version of OneSpan Sign Embedded Integration for Salesforce, you may need to enable this feature manually. If so, perform the following procedure.
To enable Chatter Feed Tracking for OneSpan Sign transaction and template objects in Lightning Experience:
Go to Setup > Customize > Chatter > Feed Tracking. The Feed Tracking page appears.
In the Object column, click the OneSpan Sign Transaction/Template Object.
Ensure that the Enable Feed Tracking option box is checked.
Click Save.
To enable Chatter Feed Tracking for OneSpan Sign transaction and template objects in Classic:
Click the Gear icon, and then click Setup.
Go to Feature Settings > Chatter > Feed Tracking.The Feed Tracking page appears.
In the Object column, click the OneSpan Sign Transaction/Template Object.
Ensure that the Enable Feed Tracking option box is checked.
Click Save.
Managing Chatter Settings
The following procedure enables an OneSpan Sign Embedded Integration for Salesforce Admin to manage certain of their organization's Chatter settings.
To manage your organization's Chatter settings, select one of the following options from the OneSpan Sign Admin page:
Disabled — If this option is selected: (1) Chatter settings are hidden on the OneSpan Sign Admin Configuration page; (2) the Enable Chatter Updates field is hidden and unchecked on all new transactions and templates; (3) nonetheless, the Enable Chatter Updates field remains visible on sent or completed transactions if those transactions had the option enabled before they were sent or completed.
Enabled and On by Default — If this option is selected: (1) the Chatter settings are visible on the Admin Configuration page; (2) the Enable Chatter Updates field is visible and checked on new transactions and templates.
Enabled and Off by Default — If this option is selected: (1) the Chatter settings are visible on the Admin Configuration page; (2) the Enable Chatter Updates field is visible and unchecked on new transactions and templates.
Changing Preferences for Chatter Notifications
Chatter posts appear on the transaction and template detail page feed. Anyone following a transaction and template record will see Chatter updates on their Chatter feed.
To change the preferences for your organization's Chatter notifications:
Click Admin on the Salesforce menu. The OneSpan Sign Admin page appears.
Select the boxes of the events for which you want notifications, and clear the boxes of the events for which you do not want notifications. Then click Save.
Display Chatter Updates on related records: All enabled Chatter updates will be posted in the Chatter feed of the Transaction Detail page and on the Related Object Record.
Transaction is sent: Users will receive a Chatter notification when a transaction is sent.
Transaction is completed: Users will receive a Chatter notification when a transaction is completed.
Include links to signed document: Chatter feed updates will include links to signed documents.
Transaction is declined: Users will receive a Chatter notification when a transaction is declined.
Transaction is opted-out: Users will receive a Chatter notification when a transaction is opted-out.
Transaction is expired: Users will receive a Chatter notification when a transaction has expired.
Recipient has completed signing: Users will receive a Chatter notification when a recipient has completed signing.
Recipient is locked: Users will receive a Chatter notification when a recipient is locked out from signing a transaction.
Recipient has delegated their signing role: Users will receive a Chatter notification when a recipient has delegated their signing role.
User is required to sign a Transaction: Chatter updates will appear not only on the Transaction feed (and Related Record if the option is enabled), but also on the Recipients feed.
Adding a Transaction's Related List to an Object's Page Layout
The following sections describe how to add a transaction's Related List to an object's Page Layout in the OneSpan Sign Embedded Integration for Salesforce Lightning Experience and the Classic UI.
Salesforce Lightning Experience
In the Lightning Experience, the procedure is the same whether you are adding a transaction's Related List to a Custom or a Standard Object's Page Layout.
To add a transaction's Related List to an Object's Page Layout in the Salesforce Lightning Experience:
On the top-right menu bar, click the Gear icon > Setup.
On the menu bar, click Object Manager. The Object Manager screen displays a list of both Standard and Custom Objects.
Click the relevant Object name (i.e. Account).
Click Page Layouts and click the relevant page layout name.
Drag and drop the appropriate Related List to the desired position.
Click Save. A message warns that you have added a Related List to this Page Layout.
Click Yes to confirm your changes.
Salesforce Classic
This section describes how to add a transaction's Related List to an object's Page Layout in Salesforce Classic.
Procedure for Standard Objects
To add a transaction's Related List to a Standard Object's Page Layout:
From the top menu, click Setup.
Click the relevant Standard Object (e.g., Accounts).
Click Edit Layout.
In the Page Layout Editor, click Related Lists.
Drag and drop the new Related List to the desired position.
Click Save. A message warns that you have added a Related List to this Page Layout.
Click Yes to confirm your changes.
Procedure for Custom Objects
To add a transaction's Related List to a Custom Object's Page Layout:
From the top menu, click Setup.
In the Salesforce Administrator menu, under Build, click Create > Objects.
Click the relevant Custom Object. The Custom Object page opens.
Scroll to Page Layouts, and click Edit next to the relevant Page Layout.
In the Page Layout Editor, click Related Lists.
Drag and drop the new Related List to the desired position.
Click Save. A message warns that you have added a Related List to this Page Layout.
Click Yes to confirm your changes.
Automating Transaction Creation in Salesforce Classic
This section describes how automate transaction creation if you're using Salesforce Classic. The following procedures provide detailed instructions:
Creating a Custom Link, Button, or List Button
If you are using Classic Salesforce, you can automate transaction creation by creating a custom Link, custom Button, or custom List Button. You can do so in one of two ways:
Creating a Custom Link, Button, or List Button to Create a Transaction via a URL
This section describes how to create a custom Link, Button, or List Button for transaction creation via a URL in the following contexts:
To create a Link, Button, or Action for a Standard Object, with a view to creating a transaction via a URL:
From the top menu, click Setup.
Click the Standard Object to which you want to add the Custom Link, Button, or List Button (e.g., Accounts).
Under the Standard Object, click Edit Layout link.
Click Buttons, Links, and Actions. The Buttons, Links, and Actions page appears.
Click New Button or Link. The New Button or Link page appears.
From the New Button or Link page, give the link, button, or list a Label and a Name.
Choose one of the following Display Types for the object you want to create:
Detail Page Link — Creates a link that you can add to the links section of any detail page. Links can display other pages or websites.
Detail Page Button — Creates a button that you can add to the heading of any detail page. Detail page buttons act on the record which the user is viewing.
List Button — Creates a button that you can add to the heading of any list view or Related List. List buttons allow users to select multiple items in the list, and to act on all of them at once.
To add list buttons to list views, edit the list view layout in search layouts.
To add list buttons to Related Lists, edit the Related List properties on the page layout where the Related List appears.
To add a list button to an object's Related List, you must create the list button in that object.
Select the appropriate Behaviour.
In the Content Source list, choose URL.
Create a suitable URL code snippet with various parameters. For example, a button that uses multiple parameters may look like this:
/apex/esl__package?ParentId={!Account.Id}& TemplateId=a0Ag0000007r4nS& Name={!Account.Name}%20Agreement& Documents=015g0000000Cm1f& Signer1={!Account.MainContact__c}& Signer1Label=a0Tg0000001uMIf& ConventionId=a0Rg00000033spu& enableReminders=true
For a complete list of URL code snippets, see Parameters for URL Code Snippets.
Click Save. A message warns that the new object will not be displayed until it is added to the Page Layout (see Adding a Link, Button, or List Button to a Page Layout).
Click OK.
To create a Link, Button, or List for a Custom Object, with a view to creating a transaction via a URL:
From the top menu, click Setup.
In the Salesforce Setup menu, under App Setup, click Create > Objects.
Click the Custom Object to which you want to add the Custom Link, Button, or List Button. The Custom Object page appears.
Scroll to the Related List Buttons, Links, and Actions, and click New Button or Link. The New Button or Link page appears.
From the New Button or Link page, give the link, button, or list a Label and a Name.
Choose one of the following Display Types for the object you want to create:
Detail Page Link — Creates a link that you can add to the links section of any detail page. Links can display other pages or websites.
Detail Page Button — Creates a button that you can add to the heading of any detail page. Detail page buttons act on the record which the user is viewing.
List Button — Creates a button that you can add to the heading of any list view or Related List. List buttons allow users to select multiple items in the list, and to act on all of them at once.
To add list buttons to list views, edit the list view layout in search layouts.
To add list buttons to Related Lists, edit the Related List properties on the page layout where the Related List appears.
To add a list button to an object's Related List, you must create the list button in that object.
Select Behaviour and Content Source URL.
Create a suitable URL code snippet with various parameters. For example, a button that uses multiple parameters may look like this:
/apex/esl__transaction?ParentId={!Account.Id}& TemplateId=a0Ag0000007r4nS& Name={!Account.Name}%20Agreement& Documents=015g0000000Cm1f& Signer1={!Account.MainContact__c}& Signer1Label=a0Tg0000001uMIf& ConventionId=a0Rg00000033spu& enableReminders=true
For a complete list of URL code snippets, see Parameters for URL Code Snippets.
Click Save. A message warns that the new object will not be displayed until it is added to the Page Layout (see Adding a Link, Button, or List Button to a Page Layout).
Click OK.
Creating a Custom Link, Button, or List Button to Create a Transaction via Conga
Conga is a third-party application that can create documents with information from Salesforce. If you are using Classic Salesforce, OneSpan Sign Embedded Integration for Salesforce can retrieve such documents from Conga, and distribute them for signing.
To create a Link, Button, or List Button, with a view to creating a transaction via Conga:
From the New Button or Link page, give the link, button, or list a Label and a Name.
Choose one of the following Display Types for the object you want to create:
Detail Page Link: Creates a link that you can add to the links section of any detail page. Links can display other pages or websites.
Detail Page Button: Creates a button that you can add to the heading of any detail page. Detail page buttons act on the record that the user is viewing.
List Button: Creates a button that you can add to the heading of any list view or Related List. List buttons allow users to select multiple items in the list, and to act on all of them at once.
To add list buttons to list views, edit the list view layout in search layouts.
To add list buttons to Related Lists, edit the Related List properties on the page layout where the Related List appears.
To add a List Button to an object's Related List, you must create the List Button in that object.
Select Behaviour: Execute JavaScript and Content Source: OnClick JavaScript.
Create the JavaScript. The following sample code is for a button created in a Contact object. To make it work, you must replace its SalesforceId parameters.
{!REQUIRESCRIPT("/soap/ajax/30.0/connection.js")} var ParentObjectId = '{!Contact.Id}'; var TransactionName = '{!Contact.Name} CongaPOC'; var RecipientId = '{!Contact.Id}'; var Send = true; var congaParameters = "SessionId={!API.Session_ID}&ServerUrl={!API.Partner_Server_URL_210}&Id={!Contact.Id}&TemplateId=00P11000002ImxI&ds7=5&defaultPDF=1&OCNR=1"; //Change popup visual here var popup = window.open("https://composer.congamerge.com?"+ congaParameters,'Conga','menu=no, scrollbars=no, top=100, left=100, width=300, height=200'); //Do not modify below this line var timer = setInterval(function() { if(popup.closed) { clearInterval(timer); var attach = sforce.connection.query("select id from attachment where ParentId ='"+ ParentObjectId+"' order by createddate desc limit 1"); if(attach.records != null) { var transactionParameters= 'ParentId='+ParentObjectId+'&Name='+TransactionName+'&Documents=' + attach.records.Id + '&Signer1=' + RecipientId + '&Signer2=' + '0031100000eKoFW' + '&ConventionId=a0711000003AGvj' + '&Signer1Label=a0L110000035S7k' + '&retURL={!URLENCODE(Contact.Id)}'; if(Send) { transactionParameters += '&Send=1'; } window.location = '/apex/esl__package?' + transactionParameters; } else { window.reload(); } } }, 500)
Adding a Link, Button, or List Button to a Page Layout
For Standard Objects:
From the top menu, click Setup.
In the Salesforce Setup menu, under App Setup, click Customize.
Click the Standard Object to which you want to add the custom link, button, or list (e.g., Accounts).
Under the Standard Object, click Page Layouts.
Click Edit.
Click New Button or Link. The New Button or Link page appears.
Perform the procedure Modifying a Page Layout to Add a Link, Button, or List Button.
For Custom Objects:
From the top menu, click Setup.
In the Salesforce Setup menu, under App Setup, click Create > Objects.
Click the Custom Object to which you want to add the Link, Button, or List Button. The Custom Object page opens.
Scroll to the related list Page Layouts, and click Edit next to the relevant Page Layout.
Perform the procedure Modifying a Page Layout to Add a Link, Button, or List Button.
Modifying a Page Layout to Add a Link, Button, or List Button
To modify a Page Layout to add a Link or a Button:
In the Page Layout Editor at the top, click Links or Buttons.
Drag and drop the new Link/Button to the desired position.
Click Save.
To modify a Page Layout to add a List Button:
Go to the Related List of the object to which you want to add the List Button, and click the wrench icon (Properties).
Expand the Buttons section, and move the new List Button from the Available Buttons to Selected Buttons.
Click OK.
Automating Transaction Creation in Salesforce Lightning Experience
The procedures needed to automate transaction creation differ, depending on if you're using Classic Salesforce or you're using the version of Salesforce that has the Lightning Experience enabled.
This section describes how to do so if you're using the version of Salesforce that has the Lightning Experience enabled. The following procedures provide detailed instructions:
If you are using the version of Salesforce that has the Lightning Experience enabled, you must automate transaction creation via a Custom Action. A Custom Action cannot directly call a URL, but it can call a Visualforce page. Thus all four of the above procedures are needed to automate transaction creation.
Creating a Field to Store the Automation URL
To create a field that will store an Automation URL:.
On the top-right menu bar, click the Gear icon > Setup. The Setup Home page opens.
Under Platform Tools, click Objects and Fields > Object Manager. The Object Manager page opens.
Click the object that will store the Automation URL (e.g., Account, Contact, Opportunity).
Under Fields & Relationships, click New.
Select the Formula data type, then click Next.
Enter a Field Label, Field Name, and Formula Return Type, and click Next.
Enter the URL as a formula (for help, see the Parameters for URL Code Snippets).
Click Check Syntax. If your formula contains no errors, click Next.
For Security for Profile, select Field-Level.
Click Next
Select the Page Layouts to which the field will be added.
Click Save.
Creating a Visualforce Page to Trigger the Automation
The following procedure creates the Visualforce page that will trigger the Automation URL from the previous section.
To create a Visualforce page to trigger the automation:
Click the Gear icon, then click Setup > Setup. The Setup Home page opens.
Under Platform Tools, click Custom Code > Visualforce Pages. Then click New.
Type a label, a name, and a description.
Create the Visualforce Markup by doing the following:
Specify the name of the object that will use the Visualforce page (e.g., Account, Contact, Opportunity), and the name of the field where the URL is stored (see Automating Transaction Creation in Salesforce Lightning Experience).
Always use the PackageAutomation component.
Specify the name of the field of the object where the Automation URL is stored. For example:
<apex:page standardController="Account"> <esl:PackageAutomation fieldName="Account_Automation_URL__c"/> </apex:page>
Select Available for Salesforce mobile apps and Lightning Pages.
Click Save.
Creating the Custom Action
The following procedure creates the Custom Action that will call the Visualforce page created in the previous section.
To create the relevant Custom Action:
Click the Gear icon > Setup > Setup Home. The Setup Home page opens.
Under Platform Tools, click Objects and Fields > Object Manager. The Object Manager page opens.
Click the object, and scroll down to Buttons, Links, and Actions.
Click New Action. The Setup Object Manager page opens.
Select the Action TypeCustom Visualforce, and select the Visualforce Page you created in the previous section.
Type a label and a name, then click Save.
Adding the Custom Action to the Page Layout
The following procedure adds to the Page Layout the Custom Action created in the previous section.
To add the Custom Action to the Page Layout:
In the Setup Object Manager, click the object you want to edit (e.g., Account, Contact, Opportunity).
Click Edit beside desired Page Layout.
Click Mobile & Lightning Actions, then drag and drop the Custom Action into the section Salesforce Mobile and Lightning Experience Actions.
Click Save.
In-App Instructions
From the OneSpan Sign Embedded Integration for Salesforce Admin page, you can click the Instructions tab for information about:
Related Lists: How to add OneSpan Sign transactions to a Salesforce layout for a Standard or Custom Salesforce Object
Custom Buttons: How to create a Custom Button, and add it to a Salesforce object
Custom Actions: How to create a Custom Action, and add it to a Salesforce object