ADO.NET Provider for Marketo

Build 25.0.9434

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 Accepts Input Streams Description
Name String True False Name of the file. Must be unique under the parent folder.
Description String False False Description of the file.
FolderId Integer True False Id of the folder where the file will be created.
FolderType String True False Type of the folder where the file will be created.
InsertOnly Boolean False False Indicates whether the call should fail if there is already an existing file with the same name.
LocalPath String False False The absolute path to a file where data is read from.
InputStream Binary False True An instance of an input stream where file data is read from. Only used if LocalPath is not set.
FileData String False 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.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434