Retrieve Configuration Row Data
This topic provides instructions on how to retrieve configuration row data of a model.
You will use the following operation in this topic:
| Type | Operation | Description |
|---|---|---|
| Query | model | Retrieves model details. |
Retrieve Configuration Row Data of a Model
The following steps demonstrate how you can run the model query to retrieve configuration row data of a model.
- Enter the following query in the Query Pane of the Manufacturing Data Model Explorer.
Query
query GetModel($modelId: ID!) { model(modelId: $modelId) { id name { value } configuredDesignItem{ tipConfigurationTable{ rows{ id name } } } } }Show More - In the Query Variables Pane, enter the value of the
modelId. To know how to obtain themodelId(tipRootModel), refer to Retrieve Items.Query Variables
{ "modelId": "bW9kZWx-d00wSVJmdmczT1VLTHZsYjJ4dDJMdF9MMkN-dVdhRlo1WWZPWWVYZHMwT0xLVW5Edl9hZ2E" } - Click Play. The configuration row data of the model will be displayed in the response.
Response
{ "data": { "model": { "id": "bW9kZWx-d00wSVJmdmczT1VLTHZsYjJ4dDJMdF9MMkN-dVdhRlo1WWZPWWVYZHMwT0xLVW5Edl9hZ2E", "name": { "value": "Configuration 1" }, "configuredDesignItem": { "tipConfigurationTable": { "rows": [ { "id": "882b2ce4-1240-472d-ad4f-e1837d1d4879", "name": "Configuration 1" }, { "id": "11e59a49-1050-4e52-a828-d329fc2dc7ab", "name": "Configuration 2" } ] } } } } }Show More