Interface MicrosoftOneDriveNodeParameters

Source

interface MicrosoftOneDriveNodeParameters {
    additionalFields?: { name?: string };
    authentication?:
        | "microsoftEntraServicePrincipalApi"
        | "microsoftOAuth2Api"
        | "microsoftOneDriveOAuth2Api";
    binaryData?: boolean;
    binaryPropertyName?: string;
    destinationFolderId?: string;
    driveTarget?: { mode: "id"; value: string };
    fileContent?: string;
    fileId?: string;
    fileName?: string;
    folderId?: string;
    itemId?: string;
    name?: string;
    newName?: string;
    operation?:
        | "create"
        | "get"
        | "delete"
        | "search"
        | "upload"
        | "move"
        | "copy"
        | "download"
        | "share"
        | "rename"
        | "getChildren";
    options?: { parentFolderId?: string };
    parentId?: string;
    parentReference?: {
        driveId?: string;
        driveType?: string;
        id?: string;
        listId?: string;
        name?: string;
        path?: string;
        shareId?: string;
        siteId?: string;
    };
    query?: string;
    resource?: "file"
    | "folder";
    resourceTarget?: "user" | "drive";
    scope?: "organization" | "anonymous";
    type?: "edit" | "view" | "embed";
    userTarget?: { mode: "id"; value: string };
}

Properties§

§readonly additionalFields?: { ... }

Default: {}

§readonly authentication?:
    | "microsoftEntraServicePrincipalApi"
    | "microsoftOAuth2Api"
    | "microsoftOneDriveOAuth2Api"

Default: "microsoftOneDriveOAuth2Api"

§readonly binaryData?: boolean

Whether the data to upload should be taken from binary field

§readonly binaryPropertyName?: string

Default: "data"

§readonly destinationFolderId?: string

ID of the destination folder to move the item into. Use root for the drive's top-level folder.

§readonly driveTarget?: { ... }

The drive the Service Principal should act on. Evaluated per input item, so an expression can target a different drive for each item. Default: {"mode":"id","value":""}

§readonly fileContent?: string

The text content of the file

§readonly fileId?: string
§readonly fileName?: string

The name the file should be saved as

§readonly folderId?: string

The ID of the folder. Use root for the top-level folder.

§readonly itemId?: string

ID of the file

§readonly name?: string

The name or path of the folder

§readonly newName?: string

New name for file

§readonly operation?:
    | "create"
    | "get"
    | "delete"
    | "search"
    | "upload"
    | "move"
    | "copy"
    | "download"
    | "share"
    | "rename"
    | "getChildren"

Default: "upload"

§readonly options?: { ... }

Default: {}

§readonly parentId?: string

ID of the parent folder that will contain the file. Use root for the drive's top-level folder.

§readonly parentReference?: { ... }

Reference to the parent item the copy will be created in Details Default: {}

§readonly query?: string

The query text used to search for items. Values may be matched across several fields including filename, metadata, and file content.

§readonly resource?: "file" | "folder"

Default: "file"

§readonly resourceTarget?: "user" | "drive"

Which drive the Service Principal should act on (app-only has no personal drive) Default: "user"

§readonly scope?: "organization" | "anonymous"

The type of sharing link to create

§readonly type?: "edit" | "view" | "embed"

The type of sharing link to create

§readonly userTarget?: { ... }

The user whose OneDrive the Service Principal should act on. Evaluated per input item, so an expression can target a different user for each item. Default: {"mode":"id","value":""}