How to Create a Cross-Company Query in MSD Axapta

How to Create a Cross-Company Query:


1. In X++, use the crossCompany keyword on the X++ select statement.

2. Set the allowCrossCompany property method to true on an instance of the Query class.

3. In the AOT, set the AllowCrossCompany property to Yes on a node under Query