Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X
(WC9.1 M050) We have a task that calls the Query-Tree webject using "object_ref=<obid>" and "selectby=latest", and is currently producing a BOM comprising the latest child parts no matter what lifecycle state their in.
We have a business requirement to return only the child parts that are in the RELEASED state.
My efforts so far at using "selectby=lifecycle" and "selecby_lifecycle_state=RELEASED" have failed, as it seems to be returning only the top level item. In my test case, the topmost item (e.g.the one referenced by <obid>) has many child parts, some are "INWORK" and others are "RELEASED". I expected the change to produce a smaller BOM, containing only the "RELEASED" parts.
What am I doing wrong? Is there a way to achieve what I want with this (or other) webject?