Tag: CopyDriveContentTo
The CopyDriveContentTo function automates the process of copying files from one Drive to another.
XML
<CopyDriveContentTo DriveId="" TargetInfo=""/>
Tag Attributes
|
Attributes |
Attributes Value |
Value Description |
|---|---|---|
|
DriveId |
ID 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>