In Azure Data Factory, I constructed a pipeline to transfer data from an Azure Storage Table to an Azure SQL database Table.
The Azure Storage Table receives data from a JavaScript chatbot that captures responses and saves them in the table. I want to initiate the CopyTabletoSQL process through my JavaScript application after all responses have been recorded.
Here is the description of my CopyTableToSQL pipeline.
{
"name": "CopyTabletoSQL",
"type": "Copy",
"policy": {
"timeout": "7.00:00:00",
"retry": 0,
"retryIntervalInSeconds": 30,
"secureOutput": false
},
"typeProperties": {
"source": {
"type": "AzureTableSource"
},
"sink": {
"type": "SqlSink",
"writeBatchSize": 10000
},
"enableStaging": false,
"dataIntegrationUnits": 0
},
"inputs": [
{
"referenceName": "tableInputDataset",
"type": "DatasetReference"
}
],
"outputs": [
{
"referenceName": "OutputSqlTable1",
"type": "DatasetReference"
}
]
}
Is there a way to trigger this from a JavaScript application? The official documentation (https://learn.microsoft.com/en-us/azure/data-factory/concepts-pipeline-execution-triggers) lists .net, PowerShell, REST API, and Python SDK as options but does not mention anything specific for node.js.