mirror of
https://github.com/LukeHagar/developer.sailpoint.com.git
synced 2025-12-09 20:37:47 +00:00
1.9 KiB
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 |
|
Intercept the source data discover command. | /connectivity/saas-connectivity/customizers/commands/source-data-discover |
|
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.