Posts

Showing posts from April, 2025

Download large files using Az copy in VMs

Image
As the LCS website gets slower and slower and the database backups get bigger and bigger.  Use AZCopy to download objects out of LCS asset library. it is an incredibly quickly vs manually downloading the files (>1min for a gig vs 1 hour+) Download AZCopy to the environment  ( https://docs.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-v10?toc=/azure/storage/files/toc.json#download-azcopy )  and user the PowerShell command :  .\azcopy copy " LCS SAS Link " " LocalPath " D The only issue I noticed is that the local path had to be into a folder, not the root of the drive (so "C:\Temp" not "C:\" which is more related to windows security then anything else. Below is the example: Extract AzCopy zip folder to C:\Temp folder Extract It took 3 minutes to download almost 18 GB of data file - WOW feeling :) This was originally posted  here .

Restore deleted Sales order from the void salesorder

 class TECRestoreDeletedSOBatch extends RunBaseBatch {      // User Input fields     DialogField     fieldSalesid;     DialogField     fieldName;            // Variables to store user input     SalesTable   salesTable;     Name salesID;      // pack() and unpack() methods are used to load the last value from user     // for our simple example we are not going to use them.     public container pack()     {         return conNull();     }     public boolean unpack(container packedClass)     {         return true;     }     // Dialog method to capture runtime user inputs for customer details     public Object dialog()     {         Dialog dialog = super();         // Set...