How to Import/Export Label files in Ax 2012 R3

Export Label File:

Open AOT, Expend Label node. Choose Label and require language to export. You can do it for individual language or you can select multiple language all in once.

ExportLabel

Import/Update Label File:

Right click on Label node in AOT and select “Create from File”, choose ald file to import than hit create.

ImportLable

  • If you are updating the existing label file then System will ask for OverWrite. Just give ok

That’s all !!!!!!:):):)

Advertisements

How to copy Folder and files with Sub folders to Other Folder in Ax 2012 X++

static void Johnkrish_CopyFolderAndFiles(Args _args)
{
str source = @”E:\JohnkrishFolderSource”;
str dest = @”E:\JohnkrishFolderDestination”;
str tempFolderPath;
System.String[] directories = System.IO.Directory::GetDirectories(source, “*.*”, System.IO.SearchOption::AllDirectories);
int folderCount = directories.get_Length();
int currentFolderCount;
void copyAllFiles(str sourceFolder, str destFolder)
{
str tempDestFileName;
System.String[] filePaths = System.IO.Directory::GetFiles(sourceFolder, “*.*”, System.IO.SearchOption::AllDirectories); //get listing of all files within the folder
System.IO.FileInfo sourceFile;
int fileCount = filepaths.get_Length();
int currentFileCount;

for(currentFileCount = 0; currentFileCount < fileCount ; ++currentFileCount)
{
sourceFile = new System.IO.FileInfo(filepaths.GetValue(currentFileCount));
tempDestFileName = strReplace(filepaths.GetValue(currentFileCount), sourceFolder, destFolder);
//Copy file
sourceFile.CopyTo(tempDestFileName, true);
}
}

//Create sub directories
for(currentFolderCount = 0; currentFolderCount < folderCount ; ++currentFolderCount)
{
tempFolderPath = strReplace(directories.GetValue(currentFolderCount), source, dest);
if(!System.IO.Directory::Exists(tempFolderPath))
{
System.IO.Directory::CreateDirectory(tempFolderPath);
}
}

//Copy all files include sub directory files
copyAllFiles(source, dest);
info(‘Success’);
}