REST API workflow Execution Error
hi,
I have created a reusable workflow accepting 4 parameters with source configured as below
"sources": [
{
"stepExternalLabel": null,
"canSupplySourceWhenExecuted": true,
"mustBeSupplied": true,
"allowAutoRefreshed": true
}
]
I am trying to execute the workflow using below request, but I am getting error for the stepExternalLabel value
Request
{
"externalLabel": "Wf_XXX",
"spaceExternalLabel": "Sp_XXXXX",
"versionToExecute": "PublishedOnly",
"dependenciesToUse": "PublishedOnly",
"refreshSources": true,
"workflowParameters": {
"DataSourceGroup" : "DataSourceGroup",
"Database_Name": "Database_Name",
"Schema_Name": "Schema_Name",
"Table_Name": "Table_Name"
},
"sources": [
{"stepExternalLabel": null,
"sourceExternalLabel": "Table_Name"
}
]
}
Error:
{ "reason": "Errors:\nnull\n", "details": []}
Could someone help me in debugging the issue?
Best Answer
-
In your Workflow, click on the menu button on each of your Source steps and give them a distinct 'External label'
use this value in your API call. Alternatively if your Workflow only has one Source step then you should be able to remove
stepExternalLabel": null,
from your request.0