server static void CAP_copyFile(FilenameOpen _attachmentFilename, str _attachmentsFolder){Set permissionSet; ; // Revert permissionsCodeAccessPermission::revertAssert();permissionSet = new Set(Types::Class);permissionSet.add(new FileIoPermission(_attachmentFilename,’r’));permissionSet.add(new FileIoPermission(_attachmentsFolder,’w’));CodeAccessPermission::assertMultiple(permissionSet);// Move to processed folder// BP Deviation Documented winAPI::copyFile(_attachmentFilename,_attachmentsFolder,true);CodeAccessPermission::revertAssert();} H K Srikanth Dynamics Axapta Blog: How to Assert multiple file IO permission
Tag: FileIO
Microsoft Dynamics Ax
IT Happens Here!: How to write in a CSV file from X++
by Bo Jensen •
How to write in a CSV file from X++ Use this code 🙂
Microsoft Dynamics Ax
How do I write a txt file using Microsoft Dynamics AX
by Bo Jensen •
You can use the TextIo X++ class or the CLRInterop. Here are 2 X++ jobs to demonstrate both approaches.
Microsoft Dynamics Ax
X++ CODE TO READ MS OFFICE WORD DOCUMENT
by Bo Jensen •
Use the below job if you want to read text from MS Word document in Dynamics Ax 2009.