<AML>
<Item type="Part" action="get">
<state>Released</state>
<generation condition="gt">0</generation>
</Item>
</AML>
Note, that we query using the generation tag in the AML in order to return all instances of a Part, not just the most current version.
As a general practice, we recommend against using direct SQL in a Method as it bypasses the Aras permission model.
Lastly, could you please provide the scenario where your item is not incrementing the major_rev?
Chris
____________________________________
Christopher Gillis
Aras Labs Software Engineer<AML>
<Item type="Part" action="get">
<state>Released</state>
<generation condition="gt">0</generation>
</Item>
</AML>
Note, that we query using the generation tag in the AML in order to return all instances of a Part, not just the most current version.
As a general practice, we recommend against using direct SQL in a Method as it bypasses the Aras permission model.
Lastly, could you please provide the scenario where your item is not incrementing the major_rev?
Chris
____________________________________
Christopher Gillis
Aras Labs Software EngineerCopyright © 2025 Aras. All rights reserved.