Files
developer.sailpoint.com/docs/connectivity/saas-connectivity/connector-customizers/customizer-commands/source-data-discover.md
2024-02-28 10:26:45 -05:00

1.9 KiB

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

Overview

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

Input/Output Data Type
Input StdSourceDataDiscoverInput
Output StdSourceDataDiscoverOutput

Example StdSourceDataDiscoverInput

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

Example StdSourceDataDiscoverOutput

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

Implementation

Before source-data-discover command

Use this logic to implement the command:

    .beforeStdSourceDataDiscover(async (context: Context, input: StdSourceDataDiscoverInput) => {
        logger.info(`Running before source data discover. 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-discover command

Use this logic to implement the command:

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

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