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=”” 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

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%}' IncludeAllVersionHistory='true'/>
		</SelectedShowDriveItemsGroups>
	</ShowGroups>
</ytriaAutomation>
JavaScript errors detected

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

If this problem persists, please contact our support.