Duplicate type with name in assembly XX Sometimes we need to delete and recreate the service, we might face some issues with duplicate type error. Here is the solution:
Kategori: Microsoft Dynamics Ax
Microsoft Dynamics Ax
Create batch job through X++ code ~ IT Pro Ramblings
by Bo Jensen •
If you need to execute code in batch, here is an example of how to add a batch job for the corresponding RunBaseBatch class.
Microsoft Dynamics Ax
Dynamics Ax Internals: Basic Address Book structure in Ax2012
by Bo Jensen •
This is a quick overview of the main tables involved in the address book functionality of Ax2012.In Ax2009, the integration between the address book and ‘entities’, like customers, suppliers, etc was a bit flaky. This has been tightened up in Ax2012 so that now the address book has a much more important role in maintaining…
Microsoft Dynamics Ax
How to Assert multiple file IO permission
by Bo Jensen •
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
Microsoft Dynamics Ax
Mukesh Hirwani – Dynamics Ax: Creating Vendors thru X++ in AX 2012
by Bo Jensen •
Here are come methods for all steps of creating new vendors in Ax2012 from dirparty to logistic and electronic addresses.
Microsoft Dynamics Ax
InventTrans Marking in Ax 3.0 via X++
by Bo Jensen •
How do you mark 1 line to another using AX 3.0 in X++? I’ve looked through the code using the inventMarking form but can’t quite get it to work via coding. Basically in all my coding examples, the findMovement function within the updateTmpMark doesn’t get called (since I somehow don’t have an _inventTrans). With the…
Business Intelligence, Microsoft Dynamics Ax, SQL Analysis Services
Setting up scheduled processing of cubes in AX2012
by Bo Jensen •
Here is a quick guide on how you can easily and quickly setup scheduled processing of the cubes for Microsoft Dynamics AX 2012. The same approach works for other Analysis Databases, but sometimes it helps to put things in context in order to make it easier for you AX geeks out there.
Microsoft Dynamics Ax
Simple Steps To Create Number Sequence In Ax2012
by Bo Jensen •
Today i want to describe about how to create number sequence in AX2012 It is same as like as we know in Ax2009 but small steps is added in AX2012.don’t worry just follow the below steps simply we will get number sequence in AX2012.
Microsoft Dynamics Ax
An alternative to the WinApi functions
by Bo Jensen •
The WinApi class holds some nice functions for file manipulation, like the WinApi::fileExistsWinApi::copyFileWinApi::deleteFileWinApi::moveFile I think every programmer has used one of those functions in Ax at one time or another, as they can be really helpful. They have one big drawback though: They need to be executed on the client tier. Trying to use…
Microsoft Dynamics Ax
Stack trace: Invalid attempt to call WinAPI::findFirstFile running in CIL on the client.
by Bo Jensen •
This error you will normally encounter when running a batch job. The issue is that batch processing doesn’t suppport WINAPI::findFirstFile method. Actually I was trying to find a file in the folder and moving to some other folder, you can use this alternative: public void run(){ System.IO.DirectoryInfo di; System.Type arrayType; System.Array array; System.IO.FileInfo fi; FilePath…
Microsoft Dynamics Ax
Import duplicate company data to use for testing [AX 2012]
by Bo Jensen •
I found this article on Microsoft Technet which describes how to setup the data-import correct when importing duplicate company data within the same application. Import duplicate company data to use for testing [AX 2012]
Microsoft Dynamics Ax
X++ code to Count Records in Query
by Bo Jensen •
Following code illustrates how we can use SysQuery::countTotal() method to get the number of records in Query. static void Query_cntRecords(Args _args) { Query query = new Query(); QueryRun queryRun; QueryBuildDataSource qbd; ; qbd = query.addDataSource(tablenum(CustTable)); queryRun = new QueryRun(query); info(strfmt("Total Records in Query %1",SysQuery::countTotal(queryRun))); } Microsoft Dynamics…
Microsoft Dynamics Ax
Importing Customers, Vendors and Products in AX 2012 – AX Support – Site Home – MSDN Blogs
by Bo Jensen •
Importing Customers, Vendors and Products in AX 2012 – AX Support – Site Home – MSDN Blogs.
Microsoft Dynamics Ax
Job to Import Vendor/Customer Postal Address in Dynamics Ax2012 | Amirs Microsoft Dynamics AX space
by Bo Jensen •
Job to Import Vendor/Customer Postal Address in Dynamics Ax2012 | Amirs Microsoft Dynamics AX space.
Microsoft Dynamics Ax
How to quickly set up Application Integration Framework (AIF) for testing Axd documents – Ivan (Vanya) Kashperuk blog – Microsoft Dynamics AX – Microsoft Dynamics Community
by Bo Jensen •
As many people find it hard to setup AIF, I have tried to help them by creating an automated way of doing the initial setup, which can be used for testing the documents using a 1-box setup and FileSystem transport adapter.
Microsoft Dynamics Ax, SQL Reporting Services
How to: Add a Drill Through Action on a Report [AX 2012]
by Bo Jensen •
MSDN does document how to add a drill through action on a report. http://msdn.microsoft.com/EN-US/library/cc582049.aspx However I feel it is quite invasive and it could be done a lot cleaner without touching too many standard objects.
Microsoft Dynamics Ax, SQL Reporting Services
SRS report does not reflect the new query changes – cache issue [AX 2012]
by Bo Jensen •
In some scenarios you may see that your query changes doe not reflect in the report. This is due to some caching that is done. The obvious thing is to delete the AUC files and clear out your data usage. But there is a new table that we need to be aware of in this…
Microsoft Dynamics Ax, SQL Reporting Services
Dynamics AX: Calling a Custom Dynamics AX 2009 SSRS report and passing parameters – From X++
by Bo Jensen •
I found this great example on http://dynamics-ax.blogspot.dk/ on how to create a simple custom SSRS Report for Microsoft Dynamics AX.
Microsoft Dynamics Ax, SQL Reporting Services
Dynamics Ax Internals: Quick walk-through of developing a report in Ax2012
by Bo Jensen •
The following is a quick-and-dirty approach to building a basic SSRS report in Ax2012. This uses an Ax query as the primary datasource, and uses display methods on the table(s) to retrieve additional information. This is not an approach you should take for all reports, particularly those that require more complex calculations or parameters, but…
Microsoft Dynamics Ax
Debug managed code executing on a remote AOS in AX 2012
by Bo Jensen •
A new feature in AX 2012 is that some pieces of code are run on the server side (AOS) and are executed in managed code. For example X++ scheduled batch jobs are compiled to common intermediate language (CIL) before beeing executed on the AOS. This is the same for services code.