Searching certain WTParts by State with WRS
Version: Windchill 12.0
Use Case: I'm using GetParts to search WTParts in Windchill using a filter like "startswith(Number, '12345')". I want to get the latest revision at the "Released" state if one exists, otherwise get the latest revision. Is there a way to construct a filter to return the latest "Released" revision but if there are none, just return the latest revision regardless of its state?
Description:
I can filter by State/Value eq 'XXX', but I feel like I need to have a conditional in there saying if that state is not found for any revisions, return the latest revision.

