Connector "Asset Management Import" cannot set Relations for Class Extension
Hi all,
we have a Class Extension for Business Services, which works very well in Web an Console. In this extension we have 4 relations to System Domain User:
→IT_AdminGroup,
→ Rufbreitschaft,
→ Business Owner and
→ BO_Vertreter.
We can use this relations in Web, Console, Powershell, ..
Now we would like to configure a new connector to import this data automatically, but unfortunatly it is not possible to set this relations because they dont have a TargetClass or key
I cannot choose an Combination Class. Is that why the relations don't work?
How can I create such a combination class or how do I have to expand our class extension?
Here are a few snipets from our MPs:
Class_BusinessService <ManagementPackFragment SchemaVersion="SM2.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<TypeDefinitions>
<EntityTypes>
<ClassTypes>
<ClassType ID="ClassExtension_4948a9ce_9966_4c83_8064_32b4947726e6" Accessibility="Public" Abstract="false" Base="Designer!Microsoft.SystemCenter.BusinessService" Hosted="false" Singleton="false" Extension="true" >
</ClassType> </ClassTypes> …
<RelationshipTypes>
<RelationshipType ID="IT_AdminGroup" Accessibility="Public" Abstract="false" Base="System!System.Reference">
<Source ID="Source_Service" MinCardinality="0" MaxCardinality="2147483647" Type="Designer!Microsoft.SystemCenter.BusinessService" />
<Target ID="Target_User1" MinCardinality="0" MaxCardinality="1" Type="Windows!Microsoft.AD.UserBase" />
</RelationshipType>
<RelationshipType ID="Rufbereitschaft" Accessibility="Public" Abstract="false" Base="System!System.Reference">
<Source ID="Source_Service" MinCardinality="0" MaxCardinality="2147483647" Type="Designer!Microsoft.SystemCenter.BusinessService" />
<Target ID="Target_User2" MinCardinality="0" MaxCardinality="1" Type="Windows!Microsoft.AD.UserBase" />
</RelationshipType>
</RelationshipTypes> <TypeProjections>
<TypeProjection ID="UKA_SM_IT_ADMINGROUP" Accessibility="Public" Type="ClassExtension_4948a9ce_9966_4c83_8064_32b4947726e6">
<Component Path="$Context/Path[Relationship='IT_AdminGroup']$" Alias="Component_IT_AdminGroup" />
<Component Path="$Context/Path[Relationship='Rufbereitschaft']$" Alias="Component_RB" />
</TypeProjection>
</TypeProjections>
</EntityTypes>
</TypeDefinitions> </ManagementPackFragment> Form_BusinessService <ManagementPackFragment SchemaVersion="SM2.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<TypeDefinitions>
<EntityTypes>
<TypeProjections>
<TypeProjection ID="UKAUnternehmensdienst_TypeProjection" Accessibility="Public" Type="Designer!Microsoft.SystemCenter.BusinessService">
<Component Path="$Context/Path[Relationship='UKA_SM_ClassUnternehmensdienst!IT_AdminGroup']$" Alias="ComponentAliasIT_AdminGroup" />
<Component Path="$Context/Path[Relationship='UKA_SM_ClassUnternehmensdienst!Rufbereitschaft']$" Alias="ComponentAlias_Rufbereitschaft" /> </TypeProjection>
</TypeProjections>
</EntityTypes>
</TypeDefinitions>
</ManagementPackFragment>
Thank you for your help
Sarah
Best Answer
-
Sarah_Geihs Customer IT Monkey ✭
Hi Geoff,
thanks for your file!
It has helped to find the problem.
My TypeProjection was imported too, but I dont have define an DisplayName in the LanguagePack so that's the reason why the combination class is displayed as "()".
The origin Problem was that the target type of the relations are Windows!Microsoft.AD.UserBase and not System!System.User. I changed the type of the target object and can configure the relations now.Sarah
1
Answers
Hi Sarah,
Not exactly sure what's wrong with your TP but try mine because this is showing up in Asset Import Connector for me.
Download the txt file, rename to .xml and then import to SCSM.
Geoff
Hi Geoff,
thanks for your file!
It has helped to find the problem.
My TypeProjection was imported too, but I dont have define an DisplayName in the LanguagePack so that's the reason why the combination class is displayed as "()".
The origin Problem was that the target type of the relations are Windows!Microsoft.AD.UserBase and not System!System.User. I changed the type of the target object and can configure the relations now.
Sarah