cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Get latest, released BOM?

MartyRoss
1-Newbie

Get latest, released BOM?

(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?

0 REPLIES 0
Announcements


Top Tags