Hello
Is there a way to automatically download files from m-files to a folder on the server when a specific workflow state is reached?
(We use M-files Desktop)
Hello
Is there a way to automatically download files from m-files to a folder on the server when a specific workflow state is reached?
(We use M-files Desktop)
Can be done in a script. Something like this should work
Option Explicit Dim objFiles Set objFiles = Vault.ObjectFileOperations.GetFiles(ObjVer) Dim intCount Dim intRemainingFilesCount : intRemainingFilesCount = objFiles.Count Dim szName, szID, szVersion, szPath For intCount = 1 To (intRemainingFilesCount) Set objFile = objFiles.Item(intCount) szName = objFile.GetNameForFileSystem() szID = objFile.ID szVersion = objFile.Version szPath = "E:\MFiles\Temp" & szName ' Target path, must be present on the M-Files server Vault.ObjectFileOperations.DownloadFile szID, szVersion, szPath Next
Thank you, I will test it
Thank you, I will test it
© 2024 M-Files, All Rights Reserved.