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=""/>
Tag Attributes
Attributes | Attributes Value | Value Description |
---|---|---|
TargetInfo | String generated by a UserInput’s CopyFileTargetSelection. | |
ChildrenOnly | TRUE / FALSE | If TRUE, only the children of a selected folder will be copied (not the folder itself). It has no effect on single files. |
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%}"/>
</SelectedShowDriveItemsGroups>
</ShowGroups>
</ytriaAutomation>