Move file to archive directory
Answers
-
Hi Khaleelah,
There is no command available in procedure to move a file to archive folder once it is read. There are ways to archive the file read outside BOARD.
Regards, Jui
0 -
what if i use a server command executing a .bat file which is placed in a directory somewhere on azure
0 -
Hi Khaleelah,
Is your Board instance on the Cloud or On-Prem? The server command step is only available to instances on-prem (see details here :
). The .bat file you wish to invoke from Board must be located in the “…\Board\Job” directory. There's a few other requirements/things to note that are explained further in detail on the Board Manual section I've linked to which I'd recommend reviewing before testing the above out.Let me know if you have any questions!
0 -
Thanks.
Instance is on cloud.
0 -
Hi Khaleelah,
Understood - in that case, unfortunately the server command step won't be applicable. If the files that need to be archived/moved are on Azure Shared Storage (such as the Z:/ drive), you may be able to utilize AZCopy in a script in order to move the files around on a scheduled basis. Further documentation provided by Microsoft pertaining to AZCopy including examples of the different operations available can be found here :
There's also a How to Guide on using the Board Cloud Shared Storage posted on the Community which may be helpful to reference :
0 -
And this is done outside board right? the script etc
0 -
yes, in cloud instances that would be "outside" of Board. Any overhead you'd need to see whether something's been changed and needs to be archived/deleted has to be done in scripts on azure.
1 -
Considering the cloud environment, I can think of 2 possible ways
- Triggering everything from outside Board
- Setup a PowerShell script to call first trigger the Bord Procedure using Board API
- In the same script call the Azure commands to move the file to the desired location
- Triggering from within Board
- Make use of Power Automate to define the steps of moving file
- Use Board to call the data reader and then use REST API step to call the Power Automate API to execute the Automation
1 - Triggering everything from outside Board