docdoku / docdoku-plm

The project purpose is to develop a comprehensive, robust open source PLM (Product LifeCycle Management) solution.
http://www.docdokuplm.com
GNU Affero General Public License v3.0
241 stars 98 forks source link

How to export BOM list? #1185

Open ricefish888 opened 6 years ago

ricefish888 commented 6 years ago

How to export the BOM list, or provide the BOM API for other systems to use.

mguimard commented 6 years ago

You can try to use the query builder to achieve this. Not sure it will cover your needs, but worth to give a try.

Navigate to Product management > parts, then click on the query builder button (on the left side of the quick search field). Choose a product context, an the desired fields to be exported (part number, depth, amout...). Click on export or search to get the results. This results can also be requested from the REST API

POST /eplmp-server-rest/api/workspaces//parts/queries {"contexts":[{"configurationItemId":"","workspaceId":""}],"selects":["pm.number","ctx.depth","ctx.amount"],"orderByList":[],"groupedByList":[],"queryRule":null,"pathDataQueryRule":null,"name":""}