AddFile: Upload a file

Tag: AddFile

The AddFile function automates the process of adding OneDrive/sites/channels Files.


XML
<AddFile FilePath="F:\XML\SHARK-2228\sapio365 - Groups- Updates.skip.xlsx" IfFileExists="Rename" KeepAlive="false"/>

Tag Attributes

Attributes

Attributes Value

Value Description

KeepAlive

TRUE / FALSE

N/A

FilePath

Local file path

Path of the local file to upload - Required. It is uploaded into the folder or drive selected in the grid.

IfFileExists

Rename, Replace

What to do when a file with the same name already exists

Upload Script

image2023-8-15_12-15-25.png image2023-8-15_12-16-0.png

Example Script

XML
<SelectedShowDriveItemsGroups>
	<Select Lines="All"/>
	<AddFile FilePath="F:\XML\SHARK-2228\sapio365 - Groups- Updates.skip.xlsx" IfFileExists="Rename" KeepAlive="false"/>
</SelectedShowDriveItemsGroups>