SelectedFileCopyTo: Copy selected files from one Drive to another
Tag: SelectedFileCopyTo
The SelectedFileCopyTo function automates the process of copying selected files from one Drive to another.
<SelectedFileCopyTo TargetInfo=”” ChildrenOnly=”” IncludeAllVersionHistory=””/>
Tag Attributes
Attributes | Attributes Value | Value Description |
---|---|---|
TargetInfo | In user input type “CopyFileTargetSelection” returning a string that can be used as TargetInfo here. | |
ChildrenOnly | TRUE / FALSE | When the folder is selected |
IncludeAllVersionHistory | TRUE / FALSE |
Example Script
<ytriaAutomation console="true">
<Echo Mode="True"/>
<ShowGroups>
<Select Lines="ByValue">
<SetParam ColumnID="displayName" Value="testhm7"/>
</Select>
<SelectedShowDriveItemsGroups NewFrame='false'>
<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>
<SelectedFileCopyTo ChildrenOnly='false' TargetInfo='{%CopyFileTargetSelectionID%}' IncludeAllVersionHistory='true'/>
</SelectedShowDriveItemsGroups>
</ShowGroups>
</ytriaAutomation>