cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

Move File From One Repository To Another

Mattie555
10-Marble

Move File From One Repository To Another

What function do I call to move a file from one repository to another. I have tried 'MoveFile', but that only seems to work when moving files from directory to another inside the same repository. I want to utilise the same functionality that can be accessed through the backend GUI in the repositories from within my service. Is this possible?

Mattie555_0-1673975494390.png

 

 

 

 

ACCEPTED SOLUTION

Accepted Solutions

Use the following service...

 

FileTransferSubsystem > Copy

 

.

// result: INFOTABLE dataShape: "FileTransferJob"
let result = Subsystems["FileTransferSubsystem"].Copy({
	async: undefined /* BOOLEAN */,
	sourceRepo: undefined /* STRING */,
	metadata: undefined /* JSON */,
	targetRepo: undefined /* STRING */,
	targetFile: undefined /* STRING */,
	targetPath: undefined /* STRING */,
	queueable: undefined /* BOOLEAN */,
	sourceFile: undefined /* STRING */,
	sourcePath: undefined /* STRING */,
	timeout: undefined /* INTEGER */
});

 

Sathishkumar_C_0-1674017315565.png

 

View solution in original post

1 REPLY 1

Use the following service...

 

FileTransferSubsystem > Copy

 

.

// result: INFOTABLE dataShape: "FileTransferJob"
let result = Subsystems["FileTransferSubsystem"].Copy({
	async: undefined /* BOOLEAN */,
	sourceRepo: undefined /* STRING */,
	metadata: undefined /* JSON */,
	targetRepo: undefined /* STRING */,
	targetFile: undefined /* STRING */,
	targetPath: undefined /* STRING */,
	queueable: undefined /* BOOLEAN */,
	sourceFile: undefined /* STRING */,
	sourcePath: undefined /* STRING */,
	timeout: undefined /* INTEGER */
});

 

Sathishkumar_C_0-1674017315565.png

 

Announcements


Top Tags