Skip to main content
Skip table of contents

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.


XML
<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

XML
<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>
JavaScript errors detected

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

If this problem persists, please contact our support.