I have made this pipeline in Azure Data Factory that copies data from a Azure Storage Table to a Azure SQL database Table.
The Azure storage table is given data from a Javascript chatbot that records answers and stores them in the table. I would like to trigger the CopyTabletoSQL through my javascript app once all of the answers have been recorded.
This is my CopyTableToSQL pipeline object.
{
"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 any way to have this execute from a javascript app? The docoumentation (https://docs.microsoft.com/en-us/azure/data-factory/concepts-pipeline-execution-triggers) only mentions .net, Powershell, REST API and Python SDK but nothing for node.js