Vault Connect

Introduction

This document provides complete information about the new feature Vault Connect, which will enhance the user’s capability to better utilize Vault in viewing archived Salesforce data from an external data source.

Feature Overview

  1. OData protocol is an open and platform-independent protocol that can be integrated with the system of the user’s choice (along with Salesforce) as it exposes REST APIs for consuming and querying data from the underlying archives.

  2. External objects support most of the capabilities that standard and custom objects have in Salesforce.

  3. No need to install any managed packages or write custom scripts in Salesforce.

Step-by-Step Guide

Create Connect Config

  1. Log in to the Vault application.

  1. Navigate to the setup module of the Vault application. Click on the required Org.

  1. Click on the Connect (Beta) module of the Vault application.

  2. On landing on the Connect (Beta) tab of the Vault setup, the user will see the following message on the screen:

  1. Once the customer reaches out to AutoRABIT support team as specified on the above screen, our technical team will perform due diligence to enable Vault Connect for the customer(s).

  2. When Vault Connect is enabled on the application, the user will see the following screen on the Connect (Beta) tab of the Vault Setup module.

  1. Click on the Add Connect Config button on the application.

  1. A pop-up will be displayed with the following information:

    • How/where to config the external data source;

    • OData URL for configuring the external data source; and

    • What to select when creating Auth. Providers.

  2. Copy the URL from the pop-up shown.

Note: The same URL can be copied from the pop-up and opened by clicking on the information icon available beside the Add Connect Config button.

  1. Select the required config from the Archive Config section and click on the Next button.

  1. On clicking Next, you will be redirected to the Jobs section.

  1. Select the required Job and click on Next.

  2. On clicking Next, you will be redirected to the Objects section.

  1. The following operations can be performed:

    • Include/exclude the required objects from the list of objects available.

    • Include/exclude the fields as required from the list of Fields available. Click on the File icon from the Fields column.

  2. The following pop-up will be displayed, where the user can exclude the fields as required and click on Apply field.

  1. On clicking Save, you will be prompted to enter the Name and Description for the config being created.

  1. On entering the required details, click on Save.

  2. On clicking Save, you will be shown a pop-up that says, “Config has been created/updated successfully,” and you will be redirected to the Connect Config Summary.

  1. On the Connect Config Summary, you can view all the configurations created.

View the Archived Data In Salesforce

  1. Log in to the Salesforce org for which you want to view the data.

  2. Create Auth. Providers

    • Go to → Auth. Providers under setup.

    • Click on the Auth. Providers under setup.

  3. Click on New.

4. Select the Provider Type – Salesforce.

  1. Provide Name and URL Suffix and click on Save.

Note: Do not change the remaining settings on the layout.

  1. On completing the required selections, click on the Save button.

Create External Data Sources

  1. Go to → External Data Sources under setup.

  1. Click on New External Data Sources.

  2. Provide External Data Source.

    • Provide Name.

    • Type → Salesforce Data: OData 4.0

    • Identity type → Named Principal

    • Authentication Protocol → OAuth 2.0

    • Authentication Provider → On clicking the LookUp glass, you can select the “Auth. Provider” created earlier.

    • Select the Authentication Provider.

    • Click on Save on the External Data Sources screen.

    • On Save, click the Validate and Sync.

    • You will be shown all the objects selected as part of the config creation.

    • On selecting the required objects, the Sync button on Salesforce will be enabled.

    • Select all the objects you want to sync or select which objects’ data you want to view in Salesforce.

    • Click on the Sync button.

    • On completion, you can see all the objects selected.

  3. Create Tabs: Customers can view the archived data under these tabs.

    • Go to → Tabs under setup.

    • Click on the New button.

  4. Under Objects, you can see the objects that are part of the Config created with the naming convention “Object__X”.

Sync with Salesforce

Overview

This feature enables the user to sync the latest metadata changes on Salesforce with Vault Connect. The user can also view the data in the same structure and the same relationship hierarchies in the connected external objects.

Step-by-Step Guide:

  1. Log in to the Vault application.

  2. Click on any Org to navigate to Vault – Connect.

  3. Click on the “Connect” tab to go to the Connect application.

  4. Click on the “Sync with Salesforce” button to initiate the sync procedure

    • Please observe the information icon for informational purposes.

  5. On initiating “Sync with Salesforce,” the user will go to the “Sync history” page.

  6. This page will provide information on how many times the sync has happened to date.

  7. On clicking “Sync with Salesforce,” the following pop-up will be displayed.

  8. Clicking on “Confirm” will redirect the user to the object list page, where the list of objects is shown.

  9. Click on “View Logs” to display the related logs.

  10. Logs can be downloaded using the "Download" button.

  11. Click on any of the objects to open the related pop-up and make the required selections.

  12. Field Label Name: The field label can be updated to a custom name by clicking on the pencil icon provided.

  13. Reference to: If a field has a pencil icon beside it, then “Type” for that field will be set to “Reference.”

  14. For polymorphic fields, at least one reference has to be selected.

    • For polymorphic fields, a pencil icon will be displayed beside the fields under the “Reference to” column.

  15. An error will be displayed under the ‘error’ column if no references were selected under the “Reference to” column.

  16. On completing the selection(s), click on the “Sync with Salesforce” button to continue with the sync procedure.

  17. An information pop-up will be displayed on clicking the “Sync with Salesforce” button.

  18. Clicking on “CONFIRM” will display a success message pop-up.

  19. The latest job can be observed as the top entry on the “Sync history” page.

  20. Clicking on the latest job will provide the list of objects from the job.

  21. Hovering over the list of fields under the References column, the list of fields selected under the references will be displayed to the user.

  22. After performing the “Sync With Salesforce”, the user has to go to the “External Objects” and select the required object.

  23. To add the related lists to the page layout of the parent object, the user first has to set the field-level security by going to the field under the object. The permission should be set to 'visible.'

  24. The user can only view data to which they have access.

  25. After setting the permissions to visible, the user should continue to edit the parent object(s) to add related lists to the page layouts.

  26. Click edit on the “Page Layouts.”

  27. On opening the page layouts, the user can view the “Related Lists” on the left side pane as highlighted.

  28. Click on the related lists and continue to add the required related lists to the layout to view under the related lists section.

  29. After completing the required configuration, the user can continue to open the object on which the configuration is done to view the related list items when the parent record is opened.


Global Search: Prerequisites, Limitations, and Troubleshooting

Prerequisite: Enabling Global Search with Vault Connect

  1. Access Setup:

    • Go to Setup in Salesforce.

  2. Search for External Data Sources:

    • In the Quick Find box, search for External Data Sources.

  3. Edit External Data Source:

    • Select the external data source you created for Vault Connect.

    • Click on Edit.

  4. Enable Free-Text Search Expressions:

    • Enable the checkbox labeled Use Free-Text Search Expressions.

By following these steps, you will enable global search functionality for Vault Connect in Salesforce.

Limitations of Querying Archived Data via Vault Connect

1. Indexed Fields Only

  • Search and queries are restricted to indexed fields from the original object in Salesforce.

  • Note: To determine what is indexed in a Salesforce object, run the following query from the Salesforce developer console: SELECT QualifiedApiName FROM FieldDefinition WHERE EntityDefinition.QualifiedApiName =<Salesforce object Name> and IsIndexed = true

2. Complete Value Searches

  • Only complete value searches or queries using the equals (=) operator will work on indexed fields.

3. Non-Indexed Fields

  • Queries or Salesforce functionalities that require a query on non-indexed fields may or may not work.

  • Impact: As the size of your archived data increases, these queries are more likely to result in timeouts.

Troubleshooting Guide: Verifying Salesforce Queries to External Database (Vault Connect)

Issue

  • Symptom: Records are not visible in the external object or global search is not functioning.

Steps to Verify Salesforce Queries to Vault Connect

  1. Open Developer Console:

    • Navigate to the Developer Console in Salesforce.

  2. Change Log Level:

    • Click on the Debug tab.

    • Select Change Log Levels.

  3. Adjust General Settings:

    • Under the General Setting for your user, click on Add / Change under the Debug Level Action.

  4. Set Callout Level to Finest:

    • Change the callout level to Finest.

  5. Check Logs:

    • Look for logs with the operation "/aura". These logs will capture the details of the callouts from Salesforce to Vault Connect.

Resolution

  1. Validate and Sync External Data Source:

    • Go to Setup.

    • Search for External Data Sources.

    • Click the external data source you created for Vault Connect.

    • Click on Validate and Sync.

  2. Reestablish Link:

    • Completing the Validate and Sync will ensure that the link between Salesforce and the external data source is reestablished if there is any problem.

By following these steps, you can troubleshoot and resolve issues related to the visibility of records in external objects and the functionality of global search.

Prerequisites

Salesforce Connect OData 4.0 license subscription.

Note: Not required for free developer edition org.

Limitations

  1. Files are not supported for viewing through external objects in Salesforce.

  2. Salesforce OData 4.0 adapter has a limitation on the number of callouts per hour. This will be addressed with the support for the Salesforce OData 4.01 adapter in subsequent versions of the capability.

  3. All the limitations of Salesforce external objects are applicable as mentioned in this article: Help and Training Community

  4. The solution only supports customers configured with AWS S3 as a storage option in Vault.

  5. There is a max limit of 5GB of archived data per customer supported for connecting to Salesforce external data source as part of the beta program. This can be extended to a higher limit by raising a request with support@autorabit.com.

  6. Fields of type XmlObjectWrapper are not supported.

  7. Fields of the object that have soapType as double, values will be truncated according to the precision and scale, as defined in the metadata of the object’s field.

    For example: If a field holds decimal value information for that object, precision and scale values will be predefined.

    Precision: The maximum number of digits in a numeric value includes all numbers to the left and the right of the decimal point (but excludes the decimal point character).

    Scale: The number of digits to the right of the decimal point in a numeric value must be less than the precision value. Example 1:

    Define a custom number field, e.g., "Number." Give it length = 3 and decimal places = 1 (scale). It might seem that this is done to restrict the precision of the field to one decimal place. However, on the UI level (on a standard edit page), if you try to type in, for example, 237.631, it will round it off to 237.631. Here precision is 4 and scale is 1. When mapping it back to Salesforce as the external object’s field, the value will be truncated to 237.6.

    Example 2:

    Say a field holds info on geolocation latitude and longitude and their precision and scale are 5 and 2, respectively. Assign the value as 77.2090, then when mapping it back to Salesforce as the external object’s field, it will be truncated to 77.20.

  8. Don’t add more than four external lookup fields to your page layout. On Lightning Experience record pages, a Record Detail component that contains more than four external lookup fields breaks the page at runtime. Please refer to the following documentation for more information on the limitations related to the layouts https://help.salesforce.com/s/articleView?id=sf.layouts_limitations.htm&type=5.

Last updated