Using Custom Entities
OneSpan Sign Embedded Integration for CRM permits users to create specialized Custom Entities.
Administrators can use these entities to perform the following procedures:
Creating a transaction Using a Custom Entity
You can create a OneSpan Sign transaction using the record of an existing Custom Entity. The following procedure describes how to do so by adding a button to the Custom Entity. When that button is clicked, the system will create a new transaction from the Custom Entity record.
To create a OneSpan Sign transaction from an existing Custom Entity:
- Ensure that in your OneSpan Sign Embedded Integration for CRM organization, the Ribbon Workbench for adding buttons is installed.
- Log in to OneSpan Sign Embedded Integration for CRM as an Administrator.
- Navigate to Settings > Customization. A new page appears.
- Click Ribbon WorkBench.
- Select the unmanaged solution that contains your Custom Entity, and click OK. A new page appears.
- Select the Custom Entity from the ENTITIES list. The upper part of the screen may change.
- In the Solution Elements tab, right-click Commands, and then click Add New.
- Under Actions, click the search icon, and then click Add.
- Select Javascript Function Action as the rule, and click OK.
- Enter SDK.eSignLive.com.Automation.CreatePackage in the Function Name field.
- Click the search button in the Library field.
- Select the eSignLive Package Automation Web resource, and click OK.
- Under Actions, click OK.
- In the Toolbox section, click Button, then drag and drop it to the Form ribbon.
- Specify esl.account.Command0.Command as the Command, and provide an Id and Label Text. The Label Text you specify will appear on your new button in the Form ribbon.
- Click Publish.
The new button becomes available in the Custom Entity, and clicking it will create a new transaction.
Adding a Sub-Grid to Display Associated transactions
You may want to add a transaction sub-grid to a Custom Entity in order to display the OneSpan Sign transactions associated with that entity. If so, perform the following procedure.
To add a transaction sub-grid to a Custom Entity:
- Log in to OneSpan Sign Embedded Integration for CRM as an Administrator.
- Navigate to Settings > Customization. A new page appears.
- Click either Customize the System or Solutions.
If you click Solutions, the solution you select must: (1) contain your Custom Entity; (2) be unmanaged.
- From the menu, expand Entities, and select the relevant Custom Entity.
- Select Forms.
- Double-click the form where you want to add the sub-grid. A new page appears.
- From the top menu, click the Insert tab.
- Select the Sub-Grid option. A new dialog box appears.
- In the Set Properties panel:
- Type the Schema name for the sub-grid control.
- In the Label field, type the display name of the sub-grid.
- In the Data Source panel:
- Ensure that records are selected with the Only Related Records option.
- The views related to the Custom Entity are displayed under the Entity drop-down list. Select the esignLivePackages view.
- In the Additional Options panel:
- Select the Required View from the View Selector options.
- Select the Off option in the View Selector.
- Click Set. The sub-grid is added to the form's tab location (see Step 7).
- Click the Home tab, and then click Save.
- Click Publish. A transaction sub-grid is added to the Custom Entity's form (see Step 6).
A new page appears.