X++ code to Split the file name from the file path

// If the file path comes from the dialog , it automatically works ,else you need to Specify '\\'
-----------------------------------------------------------------------------------

static void RB_FileNameSplit(Args _args)
{

Filename path;
FileName fileName;
Filename name;
Filename extention;
Str str_filename;
;
fileName = "c:\\Documents and Settings\\balakrishnanr\\Desktop\\practicefile.xls";
[path, name, extention] = fileNameSplit(fileName);
if (!name)
{
str_filename = '';
}

str_filename = name + extention;

print str_filename;
Pause;

}

X++ code to send email from AX

// One line code to send the email from AX......

static void RB_mailthroughSysInet(Args _args)
{

SysINetMail m = new SysINetMail();
m.sendMailAttach('ramesh.bala@gmail.com','','Hi','hi',true,'','');
Print "success";
Pause;
}

X++ code to export the file from AX

static void RB_ExportAs_csvFileCommaIo(Args _args)
{
CommaIo fileOut;
//based on the extension it will export the file from AX .
FileName fileName = "c:\\Customers.csv";
CustTable custTable;
;
#File

fileOut = new CommaIo(filename, #io_write);

if (fileOut)
{
while select custTable
{
fileOut.write(custTable.accountNum,
custTable.name,
custTable.custGroup,
custTable.currency);
}
}
}

Install and Configure Zpl Printer on D365 F&O

  Setup Zpl Printer On D365 F&O Posted on Recently, I have had an opportunity review the possibilities to print license plates within D3...