EN
Español
English
Português
    Register mappings

    In the previous section we related the properties of the CIs in CMDB with the properties of hpTechpulse and assigned a Mapping type (how we will obtain the values), for the “Mapper and Value” Value Association types, it is necessary to create an association and/or relationship of values in the following way:


    Relationship and/or partnership for ownership “brand”

    1. Search techpulse for property values “brand”.

    2. With the help of a CMDB Get the IDs of the values for the property “brand”.

    3. Set the same value to “reference” that we have been working on in the example (“computer”).

    4. Type the values in the “brand” in the configuration file, in the id property the identifier in the CMDB and in the value property the value in techpulse.

    {
        "brand": [
            {
               "reference": "computer",
               "id": 59,
               "value": "Dell"
            },
            {
               "reference": "computer",
               "id": 23,
               "value": "HP"
            }
        ]
    }
    


    Note: Repeat the step on all definitions whose “type” property is “Mapper” or “Value”.

    5. In our model example also uses the Mapper value in the type property, we repeat the same steps we used in the brand property and we will have the following mapping

    {
      "model": [
        {
          "reference": "computer",
          "id": 95,
          "value": "HP PROBOOK 440 14 INCH G9 NOTEBOOK PC"
        },
        {
          "reference": "computer",
          "id": 80,
          "value": "LATITUDE 3420"
        }
      ]
    }
    

    1. One of the properties created above, this part of the json goes at the root of the configuration json:

    {
      "model": [
        {
          "reference": "computer",
          "id": 95,
          "value": "HP PROBOOK 440 14 INCH G9 NOTEBOOK PC"
        },
        {
          "reference": "computer",
          "id": 80,
          "value": "LATITUDE 3420"
        }
      ],
      "brand": [
        {
          "reference": "computer",
          "id": 59,
          "value": "Dell"
        },
        {
          "reference": "computer",
          "id": 23,
          "value": "HP"
        }
      ]
    }
    


    Continue: Example Add-ons Step 4 ↪

    ↩ Return