Crosscompany
Yesterday I talked about executing code/getting records in several companies. Now the changecompany is not the only method. You can also get data out of several companies by using the keyword crosscompany in your select statement.
Example:
1 2 3 4 5 6 7 8 9 | Address address; container conCompanies = [ 'cee', 'dat' ]; ; while select crossCompany :conCompanies address order by dataAreaId { //Do something } |
Tags: Company, Dynamics AX, Programming, Tips & Tricks, X++
This entry was posted on Friday, April 30th, 2010 at 06:00 and is filed under Dynamics AX. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

