File creator
[sdk/google/Drive/File creator]
Creates file on the given shared folder. Example:
session Id
receives "drive_session"@0file meta data
receives { "name": "Test from CRANQ dynamic", "parents": [ "FOLDER_ID" ] "mimeType": "application/vnd.google-apps.spreadsheet" }@0supports all drives
receives false@0done
sends {"fileid": "1_ewweewweFileID"}@0
Keywords: google, api, sdk, drive, file, create
Input ports
session Id:
string
Receives the session id of the drive action. Example: "drive_session"
file meta data:
{string: any}
Receives the metadata of the file creation. Example in case of shared drive: { "name": "Test from CRANQ dynamic", "driveId": "0AFITUOLHhs3TUk9PVA", "corpora": "drive", "parents": [ "FOLDER_ID" ], "mimeType": "application/vnd.google-apps.spreadsheet" } Example in case of shared folder: { "name": "Test from CRANQ dynamic", "parents": [ "FOLDER_ID" ] "mimeType": "application/vnd.google-apps.spreadsheet" }
supports all drives:
boolean
Receives
supportsAllDrives
parameter whether create should support both drives and shared drives. Example: "true"
Output ports
done:
{"fileid": string}
Sends the result fo the action. Eg. {"fileid": "1_ewweewweFileID"}
error:
{"error": string}
Sends the error which happened during the execution of the action. Eg. {error: "Something went wrong!"}
Last updated