Activities
latest
false
Productivity Activities
Last updated Jun 11, 2024

Options

ConflictBehavior

What to be the expected behavior when an item with the same name already exists in the destination.

Namespace: UiPath.Gsuite.Activities.API

Assembly: UiPath.Gsuite.Activities.API (in UiPath.Gsuite.Activities.API.dll)

Syntax

public enum ConflictBehaviorpublic enum ConflictBehavior

Options

OptionValueDescription
Replace0Replaces the existing item
Fail1If another item with the same name exists at the same location, fail the request
Rename2Renames the new item to have an unique name
AddSeparate3Adds the item without renaming it, even if one with the same name already exists
UseExisting4Return the existing item

DriveLabelType

The type of labels.

Namespace: UiPath.Gsuite.Activities.API

Assembly: UiPath.Gsuite.Activities.API (in UiPath.Gsuite.Activities.API.dll)

Options

OptionValueDescription
Badged0Badged label type
Standard1Standard label type
All2All label types

IdentificationType

The type of data used to identify an item.

Namespace: UiPath.Gsuite.Activities.API

Assembly: UiPath.Gsuite.Activities.API (in UiPath.Gsuite.Activities.API.dll)

Options

OptionValueDescription
UrlOrId0The url or id of the item
FullPath1The full path of the item

Roles

The type of permission to be granted.

Namespace: UiPath.Gsuite.Activities.API

Assembly: UiPath.Gsuite.Activities.API (in UiPath.Gsuite.Activities.API.dll)

Options

OptionValueDescription
OWNER0The owner
WRITER1The writer
COMMENTER2The commenter
READER3The reader

GranteeType

The type of recipient.

Namespace: UiPath.Gsuite.Activities.API

Assembly: UiPath.Gsuite.Activities.API (in UiPath.Gsuite.Activities.API.dll)

Options

OptionValueDescription
User0User type
Group1Group type

DriveItemFilter

The filter builder for Drive items.

Syntax

public class DriveItemFilter : IFilterExpressionBuilder<DriveItemFilter>public class DriveItemFilter : IFilterExpressionBuilder<DriveItemFilter>

Constructors

NameConstructorSyntax
DriveItemFilterDefault constructor
publicDriveItemFilter()

Methods

NameDescription
AndAdds "AND" as logical condition between the filters (all conditions are met)
ByAdds a filter.
ByCreationDate Adds a filter by creation date
ByExpression Adds an expression to the filters
ByLastModifiedDateAdds a filter by last modified date
ByName Adds a filter by file or folder name
ByOwner Adds a filter by file or folder owner
BySubExpression Adds a subfilter to the filters
Adds a filter by the file text
ByTypeAdds a filter by file type
OrAdds "OR" as logical condition between the filters (any condition is met)

And

Adds "AND" as logical condition between the filters (all conditions are met).

public DriveItemFilter And()public DriveItemFilter And()

Adds a filter.

Namespace: UiPath.Gsuite.Activities.API

Assembly: UiPath.Gsuite.Activities.API (in UiPath.Gsuite.Activities.API.dll)

Overloads

OverloadDescription
By(DriveItemFilterField, FilterCollectionOperator, String)

Adds a filter for collection fields

By(DriveItemFilterField, FilterDateOperator, DateTime)

Adds a filter for date fields

By(DriveItemFilterField, FilterListOptionOperator, FileTypes)Adds a filter for type field.
By(DriveItemFilterField, FilterStringOperator, String)Adds a filter condition for string fields

By(DriveItemFilterField, FilterCollectionOperator, String)

Adds a filter for collection fields.

public DriveItemFilter By(
	DriveItemFilterField field,
	FilterCollectionOperator collectionOperator,
	string value
)public DriveItemFilter By(
	DriveItemFilterField field,
	FilterCollectionOperator collectionOperator,
	string value
)
field DriveItemFilterField
The field to filter by.
collectionOperator FilterCollectionOperator
The collection operator to use for filtering.
value String
The value to filter by.

By(DriveItemFilterField, FilterDateOperator, DateTime)

Adds a filter for date fields.
public DriveItemFilter By(
	DriveItemFilterField field,
	FilterDateOperator dateOperator,
	DateTime value
)public DriveItemFilter By(
	DriveItemFilterField field,
	FilterDateOperator dateOperator,
	DateTime value
)
field DriveItemFilterField
The field to filter by.
dateOperator
The date operator to use for filtering.
value DateTime
The value to filter by.

By(DriveItemFilterField, FilterListOptionOperator, FileTypes)

Adds a filter for type field.
public DriveItemFilter By(
	DriveItemFilterField field,
	FilterListOptionOperator optionOperator,
	FileTypes type
)public DriveItemFilter By(
	DriveItemFilterField field,
	FilterListOptionOperator optionOperator,
	FileTypes type
)
fieldDriveItemFilterField
The field to filter by.
optionOperatorFilterListOptionOperator
The operator to use for filtering.
typeFileTypes
The file type to use for filtering.

By(DriveItemFilterField, FilterStringOperator, String)

Adds a filter condition for string fields.
public DriveItemFilter By(
	DriveItemFilterField field,
	FilterStringOperator stringOperator,
	string value
)public DriveItemFilter By(
	DriveItemFilterField field,
	FilterStringOperator stringOperator,
	string value
)
field DriveItemFilterField
The field to filter by.
stringOperator
The string operator to use for filtering.
value String
The value to filter by.

DriveItemFilterField Enumeration

Syntax
public enum DriveItemFilterFieldspublic enum DriveItemFilterFields
Options
OptionValue
CreationDateTime0
LastModifiedDateTime1
Name2
Owner3
TextInFile4
Type5

FilterCollectionOperator

Syntax
public enum FilterCollectionOperatorpublic enum FilterCollectionOperator
Options
OptionValue
Is0
NotIn1
AllIn2
NotAllIn3
IsEmpty4
IsNotEmpty5

ByCreationDate

Adds a filter by creation date.

public DriveItemFilter ByCreationDate(
	FilterDateOperator dateOperator,
	DateTime value
)public DriveItemFilter ByCreationDate(
	FilterDateOperator dateOperator,
	DateTime value
)
dateOperator
The date operator to use for filtering.
value DateTime
The value to filter by.

ByExpression

Adds an expression to the filters.

public DriveItemFilter ByExpression(
	string expression
)public DriveItemFilter ByExpression(
	string expression
)
expression String
The expression to be used for filtering

ByLastModifiedDate

Adds a filter by last modified date.

public DriveItemFilter ByLastModifiedDate(
	FilterDateOperator dateOperator,
	DateTime value
)public DriveItemFilter ByLastModifiedDate(
	FilterDateOperator dateOperator,
	DateTime value
)
dateOperator
The date operator to use for filtering.
value DateTime
The value to filter by.

ByName

Adds a filter by file or folder name.

public DriveItemFilter ByName(
	FilterStringOperator stringOperator,
	string value
)public DriveItemFilter ByName(
	FilterStringOperator stringOperator,
	string value
)
stringOperator
The string operator to use for filtering.
value String
The value to filter by.

ByOwner

Adds a filter by file or folder owner.

public DriveItemFilter ByOwner(
	FilterCollectionOperator collectionOperator,
	string value
)public DriveItemFilter ByOwner(
	FilterCollectionOperator collectionOperator,
	string value
)
collectionOperator FilterCollectionOperator
The collection operator to use for filtering.
value String
The value to filter by.

BySubExpression

Adds a subfilter to the filters.
publicDriveItemFilterBySubExpression(
	DriveItemFilterexpressionBuilder
)publicDriveItemFilterBySubExpression(
	DriveItemFilterexpressionBuilder
)
expressionBuilder DriveItemFilter
The subfilter to be added.

ByTextInFile

Adds a filter by the file text.

public DriveItemFilter ByTextInFile(
	FilterStringOperator stringOperator,
	string value
)public DriveItemFilter ByTextInFile(
	FilterStringOperator stringOperator,
	string value
)
stringOperator
The string operator to use for filtering.
value String
The value to filter by.

ByType

Adds a filter by file type.

publicDriveItemFilterByType(
	FilterListOptionOperatoroptionOperator,
	FileTypestype
)publicDriveItemFilterByType(
	FilterListOptionOperatoroptionOperator,
	FileTypestype
)
optionOperator
The operator to use for filtering.
type FileTypes
The file type to use for filtering.

FileTypes Enumeration

Syntax
public enum FileTypespublic enum FileTypes
Options
NameValueDescription
GoogleDocs0Google Docs type
PDF1PDF type
ZIP2ZIP type
PlainText3Plain text type
RichText4Rich text type
MSWord5Microsoft Word type
OpenOfficeDoc6Open Office document type
GoogleSlides7Google Slide type
MSPowerPoint8Microsoft PowerPoint type
OpenOfficePresentation9Open Office presentation type
GoogleSpreadsheet10Google Spreadsheet type
MSExcel11Microsoft Excel type
OpenOfficeSheet12Open Office sheet type
CSV13CSV type
Images14Image types
GoogleDrawing15Google Drawing type
Videos16Video types
Audio17Audio types

Adds "OR" as logical condition between the filters (any condition is met).

public DriveItemFilter Or()public DriveItemFilter Or()

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.