Can I do this in AML? Or do I need to do some SQL magic instead? Would be great if somebody could help me implement a method that does this. Or at least show me how I should approach the problem.
Can I do this in AML? Or do I need to do some SQL magic instead? Would be great if somebody could help me implement a method that does this. Or at least show me how I should approach the problem.
SELECT P1.*
FROM [InnovatorSample].[innovator].[PART] AS P1
WHERE GENERATION = (
SELECT MAX(GENERATION) FROM [InnovatorSample].[innovator].[PART] AS P2
WHERE PERMISSION_ID IN ('95475AE006E7415794BDC93808DC04D2', 'A43FE707C3C54C90AD660D27A81AC58D') AND P1.CONFIG_ID = P2.CONFIG_ID)
ORDER BY P1.NAME
<generation condition="gt">0</generation>
By manually querying for the generation like this, all versions of the items will be returned. You could then perform a search for specific permission_ids with something like below.
<permission_id condition="in">95475AE006E7415794BDC93808DC04D2,A43FE707C3C54C90AD660D27A81AC58D</permission_id>
Chris
<generation condition="gt">0</generation> do? I mean, how does applying a condition on generation change the behavior of is_current?Copyright © 2025 Aras. All rights reserved.