I am using Alteryx Gallery API (POST /v1/workflows/{appId}/jobs) to execute a workflow.
I am passing the file path as value but I keep getting the error - "The Action \"ToolId:3\" has an error: The file name is empty."
How should the file path be passed so that it is read by API.
Attached image of value that I am passing.
Solved! Go to Solution.
Hi,
I think you need to first use this endpoint (POST) - /user/v2/inputfiles/- to publish a temporary file to be used as an input to an Analytic App.
Regards.
API Documentation:
Implementation Notes
Use a MultiPart/Form-Data request to publish a temporary file to be used as an input to an Analytic App. The name of the required form-data section is inputFile.
--FORM-BOUNDARY
Content-Disposition: form-data; name="inputFile"; filename={fileName}
Content-Type: {contentType}
{fileContents}
--FORM-BOUNDARY
Use the fileId returned as an input parameter in an Analytic App.
Response Class
HI,
I'm joining this thread to ask you: what exactly should I enter in this form?
--FORM-BOUNDARY
Content-Disposition: form-data; name="inputFile"; filename={fileName}
Content-Type: {contentType}
{fileContents}
--FORM-BOUNDARY
fileName is the path of the file I want to upload?
what are "contentType" and "fileContents" fields?
Thank you very much for your help!
Gilberto
User | Count |
---|---|
3 | |
1 | |
1 | |
1 | |
1 |