Request

Response

    Identify Item Configurations

    This topic will help you determine whether a specific component version of an item is a configuration member or not.

    You will use the following query in this topic:

    TypeOperationDescription
    Query componentVersion Retrieves version of a component.

    Step 1 - Identify if a Component of an item is a Configuration Member

    The following steps demonstrate how you can run the componentVersion query to know if a component version of an item is a configuration member.

    1. Enter the following query in the Query Pane of the Manufacturing Data Model Explorer.

      Query

      query componentVersion($componentVersionId: ID!) {
          componentVersion(componentVersionId: $componentVersionId) {
              id
              name
              isConfiguration
            }
          }
      
    2. In the Query Variables Pane, enter the value of the componentVersionId. To know how to obtain the componentVersionId (tipRootComponentVersion), refer to Retrieve Items.

      Query Variables

      {
        "componentVersionId": "Y29tcH5WQVZNUW1sYmxrZDBtaXJwU0NYMHJ0X0wyQ35qbFhkMXU0akMzTjc0dlBpZ0RGS2FHX2FnYX45WUtYWDhWRklMRUNSR3pqUGZlcDF3"
      }
      
    3. Click Play. If the field isConfiguration is true, it means that the requested component version of an item is a member of the configuration.

      Response

      {
        "data": {
          "componentVersion": {
              "id": "Y29tcH5WQVZNUW1sYmxrZDBtaXJwU0NYMHJ0X0wyQ35qbFhkMXU0akMzTjc0dlBpZ0RGS2FHX2FnYX45WUtYWDhWRklMRUNSR3pqUGZlcDF3",
              "name": "ConfigRow-Height",
              "isConfiguration": true
            }
          }
        }
      
      Show More