Highlighted
Absent Member.. Absent Member..
Absent Member..
357 views

Get UCMDB attributes from adapter code

Hi,

I have developed a customized push adapter based on the generic push adapter. 

When I get the link data from Framework via Framework.getTriggerCIData('addResult') it gives me the local CI ID (mamId) for all link endpoints (DiscoveryID1 and DiscoveryID2 in the XML). I would like to use this ID to fetch the global_id attribute for these CIs which is used as unique ID in my integration. Is there something I have access to from my adapter context that I can use to build a query and fetch an attribute from a CI based on the CI ID?

 

<link targetRelationshipClass="" targetParent="u_ws_ucmdb_business_service" targetChild="u_ws_ucmdb_business_application" operation="add" mode="update_else_insert" nameSpace="" mamId="5892a608b3c34d6cba3a4351b96b1e51" id="end1id%5BUCMDB%0Abusiness_service%0A1%0Ainternal_id%3DSTRING%3D621ccd011846e300df8a1aba053ae23d%0A%5D%0Aend2id%5BUCMDB%0Abusiness_application%0A1%0Ainternal_id%3DSTRING%3Ddbc6d3f5b6b1b1257aaa3920748567f8%0A%5D%0AUCMDB%0Ausage%0A1%0Ainternal_id%3DSTRING%3D5892a608b3c34d6cba3a4351b96b1e51%0A">
        <field name="DiscoveryID1">621ccd011846e300df8a1aba053ae23d</field>
        <field name="DiscoveryID2">dbc6d3f5b6b1b1257aaa3920748567f8</field>
        <field name="end1Id">UCMDB%0Abusiness_service%0A1%0Ainternal_id%3DSTRING%3D621ccd011846e300df8a1aba053ae23d%0A</field>
        <field name="end2Id">UCMDB%0Abusiness_application%0A1%0Ainternal_id%3DSTRING%3Ddbc6d3f5b6b1b1257aaa3920748567f8%0A</field>
        <field name="u_ucmdb_global_id" key="false" datatype="" length="">5892a608b3c34d6cba3a4351b96b1e51</field>
        <field name="u_ucmdb_class" key="false" datatype="" length="">usage</field>
        <field name="u_ucmdb_created" key="false" datatype="datetime" length="">1411993493</field>
        <field name="u_ucmdb_updated" key="false" datatype="datetime" length="">1411993493</field>
      </link>

 

Kind regards,

Malin

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.