Skip to main content
Skip table of contents

CopyDriveContentTo: Copy files from one Drive to another

Tag: CopyDriveContentTo

The CopyDriveContentTo function automates the process of copying files from one Drive to another.


XML
<CopyDriveContentTo DriveId="" TargetInfo=""/>

Tag Attributes

AttributesAttributes ValueValue Description
DriveIdID of source Drive
TargetInfo

String generated by a UserInput’s CopyFileTargetSelection.

Example Script

XML
<ytriaAutomation console="true"> 
	<Echo Mode="True"/>
	<ShowUsers>
		<ApplyView name="File-OneDrive"/>
		<Select Lines="All"/>
		<SelectedShowDriveItemsUsers NewFrame='true'>
		<Select Lines="ByValue">
			<SetParam ColumnID="name" Value="sapio365Trace.1.oooo.log.3997"/>
		</Select>
		<UserInput Title="User Input example" ButtonTextOK="OK button" ButtonTextCancel="Cancel button">
			<Variable Name="CopyFileTargetSelectionID" Label="CopyFileTargetSelection" Type="CopyFileTargetSelection"/>
		</UserInput>
		<CopyDriveContentTo DriveId='b!Ur9_eK5F-0mTPWz_h5XUk5PRx-ANpGRJsG0P0LF7NVlBFFOXwvuFQqtSNxsKkNUc' TargetInfo='{%CopyFileTargetSelectionID%}'/>
		</SelectedShowDriveItemsUsers>
	</ShowUsers>
</ytriaAutomation>
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.