Enabling External Data

  • Updated

Let’s get started by configuring the API and connections to the content sources.

Cloud Accessible API

This is the API that you as a customer would stand up and make available to RecordPoint. The API is responsible for providing the metadata that will be used to enrich records beyond those already provided by the original content source.

RecordPoint can connect to any HTTPS endpoint that accepts a subscription key or client certificate (see the API requirements below). Azure API Management is a common choice; for more information please refer to the following resource, https://azure.microsoft.com/en-au/services/api-management

The API Contract is defined below and requires the following:

Response payload schema

Field Name Description
Status indicator whether the request was successful or not
Data contains a collection of objects as defined below in the Data element schema section
ErrorMessage provides the details for any error encountered
Links

contains two properties

  • Self – current url requested
  • Next – the next url to be invoked when the returned result set spans more than one page

 

Sample response payload

{
  "Status": "success",
  "Data": [
    {
      "Id": "f66d550c-3fb4-4422-aa6c-789425a5bb64",
      "CreatedDate": "2020-01-02T07:30:02.9179477Z",
      "ModifiedDate": "2020-06-26T17:58:42.1153638Z",
      "Properties": [
        { "Name": "ProjectName", "Value": "Marine Impact Program", "Type": "String" }
      ]
    }
  ],
  "ErrorMessage": "",
  "Links": {
    "Self": "",
    "Next": ""
  }
}

 

Data element schema

The Data element contains a collection of objects:

Field Name Description
Id a unique value for each object in the Data element. This value will be matched against the incoming records metadata property declared by the Source primary key entry in the RecordPoint External data connection. When a match, the record will be applied to the Properties from this object.
CreatedDate this field is used in date filtering on a GET request to retrieve all created items, see below for more on filtering.
ModifiedDate this field is used in date filtering on a GET request to retrieve all updated items, see below for more on filtering.
Properties

a collection of values that will be applied to records, must contain;

  • Name
  • Value
  • Type

Where the following Types are supported

  • String
  • DateTime
  • Boolean
  • Double

Sample Data element payload

{
  "Data": [
    {
      "Id": "f66d550c-3fb4-4422-aa6c-789425a5bb64",
      "CreatedDate": "2020-01-02T07:30:02.9179477Z",
      "ModifiedDate": "2020-06-26T17:58:42.1153638Z",
      "Properties": [
        { "Name": "ProjectName", "Value": "Marine Impact Program", "Type": "String" },
        { "Name": "HasSensitiveInfo", "Value": "true", "Type": "Boolean" },
        { "Name": "ProjectCreated", "Value": "2014-10-01T00:16:21.214Z", "Type": "DateTime" }
      ]
    },
    {
      "Id": "d6579b77-b391-471e-b446-2b96f6b75ef3",
      "CreatedDate": "2021-05-25T04:20:38.2695088Z",
      "ModifiedDate": "2021-07-04T00:45:33.6399976Z",
      "Properties": [
        { "Name": "ProjectName", "Value": "Tree Habitat Carbon Offset", "Type": "String" },
        { "Name": "HasSensitiveInfo", "Value": "false", "Type": "Boolean" },
        { "Name": "ProjectCreated", "Value": "2018-06-04T00:16:21.214Z", "Type": "DateTime" }
      ]
    }
  ]
}

JSON Schema

You can use this JSON Schema (draft 2020-12) to validate your API's responses. Field names and Type values are not case-sensitive, so id or string are also accepted. Send each property Value as a string.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "RecordPoint External Data API response",
  "type": "object",
  "required": ["Data"],
  "properties": {
    "Status": {
      "type": "string",
      "description": "Whether the request was successful, for example \"success\"."
    },
    "ErrorMessage": {
      "type": "string",
      "description": "Details of any error encountered."
    },
    "Data": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["Id", "CreatedDate", "ModifiedDate", "Properties"],
        "properties": {
          "Id": {
            "type": "string",
            "minLength": 1,
            "description": "Matched against the record's Source primary key value. Items without an Id are ignored."
          },
          "CreatedDate": { "type": "string", "format": "date-time" },
          "ModifiedDate": { "type": "string", "format": "date-time" },
          "Properties": {
            "type": "array",
            "description": "Return an empty array to clear the values previously supplied for this Id.",
            "items": {
              "type": "object",
              "required": ["Name", "Value", "Type"],
              "properties": {
                "Name": { "type": "string", "minLength": 1 },
                "Value": { "type": "string" },
                "Type": {
                  "enum": ["String", "DateTime", "Double", "Boolean"],
                  "description": "Properties with any other Type are ignored."
                }
              }
            }
          }
        }
      }
    },
    "Links": {
      "type": "object",
      "properties": {
        "Self": { "type": ["string", "null"] },
        "Next": {
          "type": ["string", "null"],
          "description": "URL of the next page. Empty or null on the last page."
        }
      }
    }
  }
}

Key Considerations for your API

Filtering – To limit the data for day to day processing your API needs to support an optional from parameter in the format ?from=yyyy-MM-dd (a UTC date, for example ?from=2026-11-24). When supplied this is to return only items that have a CreatedDate or ModifiedDate on or after that day. When not supplied the entire dataset is to be returned. RecordPoint requests the entire dataset when the connection is created and after certain changes to it, and then requests changes daily at 23:00 UTC.

Pagination – Your API decides how many items to return in each response. When the result set spans multiple pages your API is responsible for providing the next link as part of the response, and RecordPoint keeps requesting the Next URL until it is empty. See the Next option in the Links section of the response payload schema above.

Securing your API using best practices – RecordPoint supports certificate, subscription keys and a combination of both for authenticating to your API. More information on securing your API can be found here https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-mutual-certificates-for-clients

API requirements

  • The API must be reachable over HTTPS.
  • When an API Secret is configured, it is sent in the Ocp-Apim-Subscription-Key request header.
  • Certificates must be uploaded in .pfx format.
  • Each request must respond within 15 seconds.
  • Only properties with a Type of String, DateTime, Double or Boolean are kept.
  • If a connection fails 8 sync runs in a row, it is paused. Saving the connection again resumes it.

RecordPoint External Data connection

Role Required To create and manage External Data connections you need to be assigned to the Application Administrator role.

Once you have provisioned your API to surface the additional metadata to RecordPoint you can then connect that API to RecordPoint.

Create a new connection

  1. Click on the Settings icon connectors-settings-cog-1.png in the top right hand corner of RecordPoint.
  2. Click on Configuration in the left hand navigation pane and select External Data, this displays your current connections.

MES_AllConnections.png

  1. Select the New button

MES_NewConnectionBulk.png

Field Name Description
Title Title for the connection, can be used for searching and filtering connections
Description Description for the connection, can be used for searching and filtering connections
Enabled Allows you to create a connection in preparation for record enrichment. Records are only enriched when the connection is enabled
Update existing records with changes When disabled, modifications to the API data set will not be applied to declared records.
API URL The url of your Cloud Accessible API providing the additional metadata
API Secret The secret applied to your API. When using Azure APIM this is found under the Subscription section of your API. A Secret or Certificate is required, however both can be used
Certificate Upload the certificate securing your API
Certificate Password  The password for the uploaded certificate
Apply connection details to connector Select the connector instance whose records should be enriched with the additional metadata.
Source primary key

The field name on submitted records that contains the value used for matching the Id for an object entry returned in the Data section of your API response payload. If no match is made then no additional metadata will be added to the record.

The fields available for use can be found in the connector specific section of the record details page.

Please ensure the selected field is indexed for searching prior to enabling if using the Update existing records with changes capability.

Operator

How the Source primary key value on a record is matched to the Id returned by your API.

  • Equals (the default) matches records whose value is the same as the Id.
  • Begins with also matches records whose value starts with the Id, such as every record in a folder and its subfolders.

The operator can't be changed after the connection is created.

Priority

A whole number from 0 to 999 (the default is 0). When more than one connection supplies the same property for a record, the connection with the higher priority wins. See Which connection wins below.

Changes apply when records are next ingested or updated; existing values are not recalculated.

Rolling out gradually The Operator and Priority fields are being rolled out gradually, so they may not yet appear in your tenant. Until they do, every connection uses Equals matching with a priority of 0.

Which connection wins

When more than one connection provides a value for the same property on a record, the value is chosen property by property, in this order:

  1. Equals matches win over Begins with matches.
  2. Between Begins with matches on the same field, the longer match wins.
  3. The connection with the higher Priority wins.
  4. If all of these are equal, the older connection wins.

The same order applies when several rows from one connection match a record, not only rows from different connections. Because the choice is made property by property, a less specific row still supplies any property that the more specific row doesn't include.

Example: a connection uses Begins with on the file path, and your API returns rows with the Ids /abc and /abc/def. A record with the path /abc/def/ghi matches both rows:

Property Row /abc Row /abc/def Applied to /abc/def/ghi
Department Finance Accounts Payable Accounts Payable (longer match)
Owner Jane Citizen (not supplied) Jane Citizen (only match)

Begins with matches whole folder names only, so /abc/de doesn't match /abc/def/ghi. Both / and \ separate folders, and differences in case and trailing separators are ignored, so a row /ABC/ also matches /abc/def/ghi.

  1. Complete the fields and select Save.

After saving the connection an initial sync of the data from your API will be performed by RecordPoint. This allows the data to be cached in RecordPoint so that for each ingested record a live API request is not required.

 

Edit an existing connection

  1. From the Configuration\External Data page, which displays all of your current connections
    MES_AllConnections-Edit.png
  2.  Click the Title of the connection that you wish to modify, or select it and click Edit.
  3. Make the necessary changes and select Save. Please note, that changing the API URL of a connection is not currently supported. To use a different URL please create a new connection.

 

Delete a connection

  1. From the Configuration\External Data page, which displays all of your current connections
  2. Select the connections to be deleted. one or more connections can be deleted at one time.
  3. Click the Delete button.

MES_AllConnections-Edit.png

Deleting a connection does not remove metadata from records that were previously enriched by the deleted connection.

Things to know

  • RecordPoint keeps a cached copy of your API data. If your API stops returning an item, its cached values continue to be applied to records. To clear an item's values, return it with an empty Properties collection.
  • Matching is case-sensitive for connections using Equals: the Source primary key value must match the Id exactly. For example, \\FS\Finance does not match \\fs\finance. Connections using Begins with ignore case and trailing separators (see Which connection wins).
  • Disabling a connection is not retrospective: records already enriched keep their values, and new versions of records are no longer enriched by that connection.

Sample connection

 

MES_EditConnectionBulk.png

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request