While working on a client case where custom made data export was needed, I coded some classes to make the export. While working with the code, I decided it would be a good idea to make the currently chosen company id a part of the file name when exporting, as the customer have several company accounts, and we need to export from all of them. I spent a little time to find out how to get the current selected company account id and I came up with: static void Job77(Args _args) { ; info(appl.company().ext()); } So I made a function for constructing the file name and put the appl.company().ext() bit in that.
My thoughts on Dynamics AX application development. I have been working as a consultant with Microsoft ERP-technology since 1994. Currently I work at Optimate A/S. My main focus is customization and application development. This blog is merely my place to put stuff that I want to remember. If anybody can benefit from reading this, that's great :0). Feel free to use any code snippets posted - but accept that you do this at your own risk!!!