5 min readUpdated Mar 2, 2026

getRecord Documentation

Overview

getRecord is a Logic component within the Vantage analytics and data platform designed to fetch a single record by its unique identifier (ID) from the contacts application. This functionality is essential for applications that require detailed information on specific contacts, enabling seamless data retrieval and integration within analytics workflows.

Purpose

The primary purpose of getRecord is to allow applications to retrieve a contact record based on its ID. It serves as a bridge to access contact details stored in the backend systems while managing necessary authentication and context information.

Settings

The getRecord function has several settings, which determine its operation and configurations:

1. Setting: recordId

2. Input: inputs

3. Configuration: config

4. Context: context

How It Works

The getRecord function operates as follows:

  1. Input Handling: It receives input from both the context and function parameters. The recordId is derived first from inputs and then from config.
  2. Error Checking: It performs checks to ensure both clientId and recordId are provided. If either is missing, the function returns an error.
  3. Fetch Configuration: The function retrieves application configuration using getAppConfig, which is essential for understanding how to proceed with data retrieval.
  4. Data Adapter Creation: It creates a data adapter using createAppDataAdapter, tailored for the application type and the user's context.
  5. Data Retrieval: Finally, it calls the getRecord method on the adapter, passing the necessary parameters, and returns the result. If no record is found, it returns an empty data array.

Expected Data

The getRecord function expects the following data:

AI Integrations

Currently, the getRecord function does not have any explicit AI integrations. However, it can be part of larger AI-driven workflows where data retrieval feeds into machine learning models or analytic processing components that provide insights from the fetched data.

Billing Impacts

The getRecord function is charged based on the number of records fetched and the underlying data storage calls made during operability. Each call to the data adapter to retrieve a record may incur a cost, depending on the pricing model of the storage provider associated with clientId. Always monitor usage to avoid unexpected charges.

Use Cases & Examples

Use Case 1: CRM Data Access

In a customer relationship management application, sales representatives need to access detailed records of specific clients for calls or meetings. Using getRecord, they can retrieve current client information quickly based on ID.

Use Case 2: Data Reporting

A team lead might use this function in an analytics dashboard to show detailed profiles of users in reports. By selecting record IDs dynamically based on user input, they can tailor the information displayed.

Use Case 3: Contact Update Features

In a data management tool, retrieving a contact record based on the ID can support an interface where users can modify existing contact details. The interface would load current data for editing.

Detailed Example Configuration

Consider a scenario where a CRM application aims to display detailed information about a contact when the user clicks on their name in a list. The getRecord component can be configured as follows:

json
{
  "inputs": {
    "recordId": "12345"
  },
  "config": {
    "recordId": "12345" // Can be overridden by inputs
  },
  "context": {
    "clientId": "abcde-12345-fghij-67890",
    "userId": "user-123",
    "nodeType": "contacts/getRecord"
  }
}

In this example, when invoked, the component will retrieve the record associated with ID 12345, providing complete access to that specific contact's information for further actions.