Files
developer.sailpoint.com/docs/connectivity/saas-connectivity/connector-customizers/customizer-commands/source-data-read.md
darrell-thobe-sp 2cd5ccfc81 Prettified Code!
2024-04-18 10:31:05 +00:00

1.8 KiB

id, title, pagination_label, sidebar_label, keywords, description, slug, tags
id title pagination_label sidebar_label keywords description slug tags
source-data-read-customizer Source Data Read Source Data Read Source Data Read
connectivity
connectors
Source Data Read
Intercept the source data read command. /connectivity/saas-connectivity/customizers/commands/source-data-read
Connectivity
Connector Command

Overview

Use these commands to intercept the source-data-read command.

Input/Output Data Type
Input StdSourceDataReadInput
Output StdSourceDataReadOutput

Example StdSourceDataReadInput

{
    "sourceDataKey": "name",
    "queryInput": {
        "query": "fetchAll",
        "limit": 10
    }
}

Example StdSourceDataReadOutput

[
  {
    key: 'id',
    label: 'Id',
    subLabel: 'Airtable Base Id',
  },
  {
    key: 'name',
    label: 'Name',
    subLabel: 'Airtable Source Table Name',
  },
];

Implementation

Before source-data-read command

Use this logic to implement the command:

    .beforeStdSourceDataRead(async (context: Context, input: StdSourceDataReadInput) => {
        logger.info(`Running before source data read. Query: ${input.queryInput?.query}`)
        return input
    })

The input object can be mutated and returned, but the same data type must still be returned.

After source-data-read command

Use this logic to implement the command:

    .afterStdSourceDataRead(async (context: Context, output: StdSourceDataReadOutput) => {
        logger.info(`Running after source data read first query record key: ${output[0].key}`)
        return output
    })

The output object can be mutated and returned, but the same data type must still be returned.