Wednesday, August 10, 2016

AX 2012 AX 2009 AOT Query Company Range AX2012 AX2009

To run the AOT Query for specific companies, 

Create new method getCompanyRange() in AOT Query and return the container with values of dataareaid and select marked true/false.


Container getCompanyRange()
{
      return [["com1", true],["com2", true]];
}

AllowCrossCompany property will bring the all companies in AX but above method will restrict and shows only specified companies.

Happy DAXing,,,
Cheers....

No comments:

Post a Comment