Retrieve Root Configuration Members
This topic provides instructions on how to retrieve root configuration member of a component.
You will use the following query in this topic:
Type | Operation | Description |
---|---|---|
Query | componentVersion | Retrieves version of a component. |
Step 1 - Retrieve Root Configuration Member of a Component
The following steps demonstrate how you can run the componentVersion query to retrieve root configuration member of a component.
- Enter the following query in the Query Pane of the Manufacturing Data Model Explorer.
Query
query componentVersion($componentVersionId: ID!) { componentVersion(componentVersionId: $componentVersionId) { id name partNumber isMilestone materialName lastModifiedOn configuredDesignItemVersion{ configurationTable{ id rows{ id name rootConfigurationMember{ id } } } } } }
Show More - In the Query Variables Pane, enter the value of the
componentVersionId
. To know how to obtain thecomponentVersionId
(tipRootComponentVersion), refer to Retrieve Items.Query Variables
{ "componentVersionId": "Y29tcH5WQVZNUW1sYmxrZDBtaXJwU0NYMHJ0X0wyQ35qbFhkMXU0akMzTjc0dlBpZ0RGS2FHX2FnYX45WUtYWDhWRklMRUNSR3pqUGZlcDF3" }
- Click Play. The
rootConfigurationMember
of a component will be displayed in the response.Response
{ "data": { "componentVersion": { "id": "Y29tcH5WQVZNUW1sYmxrZDBtaXJwU0NYMHJ0X0wyQ35qbFhkMXU0akMzTjc0dlBpZ0RGS2FHX2FnYX45WUtYWDhWRklMRUNSR3pqUGZlcDF3", "name": "ConfigRow-Height", "partNumber": "ConfigRow-Height", "isMilestone": false, "materialName": "Steel", "lastModifiedOn": "2024-04-04T06:45:53.000Z", "configuredDesignItemVersion": { "configurationTable": { "id": "1", "rows": [ { "id": "2854fcd2-c197-472d-a6cd-a42309f31925", "name": "ConfigRow-Height", "rootConfigurationMember": { "id": "Y29tcH5WQVZNUW1sYmxrZDBtaXJwU0NYMHJ0X0wyQ35qbFhkMXU0akMzTjc0dlBpZ0RGS2FHX2FnYX45WUtYWDhWRklMRUNSR3pqUGZlcDF3" } } ] } } } } }
Show More