You can create file in folder using below code in Axapta. Just type code in job and run that job then you can check test.txt file get created in temp folder of c drive. WinAPIServer::WS_FileCreate(@'c:\temp\test.txt'); In WinAPIServer class you can check code in bus layer in WS_FileCreate method. Com oFileSystem; COMVariant varFile; InteropPermission perm; boolean b; ; varFile = new COMVariant(COMVariantInOut::OUT, COMVariantType::VT_BSTR); varfile.bStr(_InFile); perm = new InteropPermission(InteropKind::ComInterop); if (perm == null) { return null; } perm.assert(); oFileSystem = new COM('Scripting.FileSystemObject'); return oFileSystem.CreateTextFile(varFile);
Technical Tutorials x++,tips on issues or troubleshooting On Ax ERP ,Microsoft Dynamics 365,Ax 2012,Microsoft , U.S.,Business Software solution.