CreateFile
Creates a new file from the included payload.
Execute
Sample EXECUTE CreateFile FileData='aGVsbG8gd29ybGQ=', Description='Test Create File', Name='newFile_0', FolderId=35, FolderType='Folder'
EXECUTE CreateFile LocalPath='C:/users/cdata/file.txt', Description='Test Create File', Name='newFile_0', FolderId=35, FolderType='Folder'
EXECUTE CreateFile LocalPath='/tmp/file.txt', Description='Test Create File', Name='newFile_0', FolderId=35, FolderType='Folder'
Input
| Name | Type | Required | Description |
| Name | String | True | Name of the file. Must be unique under the parent folder. |
| Description | String | False | Description of the file. |
| FolderId | Integer | True | Id of the folder where the file will be created. |
| FolderType | String | True | Type of the folder where the file will be created. |
| InsertOnly | Boolean | False | Indicates whether the call should fail if there is already an existing file with the same name. |
| LocalPath | String | False | The absolute path to a file where data is read from. |
| FileData | String | False | Base64 string representation of the file content. Only used if LocalPath and InputStream are not set. |
Result Set Columns
| Name | Type | Description |
| Id | Integer | Id of the created file. |
| URL | String | URL of the created file. |
| Success | Boolean | Boolean indicating if the procedure was executed successfully. If false, the output parameter 'Details' will contain the failure details. |
| Details | String | Details of execution failure. NULL if success=true. |