Configuration item relationship
Hi Team!!! I create two new configuration item classes. And I set relationship Class A to Class B, in autoring tools I have this relationship, also in SCSM Entity Explorer. But when I import this management pack in SCSM I have only property, relationships are absent... How I can make relationship in database and in console, who can know it?
Answers
<ClassTypes>
<ClassType ID="Invoice" Accessibility="Public" Abstract="false" Base="System!System.ConfigItem" Hosted="false" Singleton="false" Extension="false">
<Property ID="PurchaseType" Type="string" AutoIncrement="false" Key="false" CaseSensitive="false" MaxLength="256" MinLength="0" Required="false" Scale="0" />
<Property ID="InvoiceId" Type="guid" AutoIncrement="false" Key="true" CaseSensitive="false" MaxLength="256" MinLength="0" Required="false" Scale="0" />
<Property ID="DocumentsReceivedDate" Type="string" AutoIncrement="false" Key="false" CaseSensitive="false" MaxLength="256" MinLength="0" Required="false" Scale="0" />
<Property ID="NumberInvoice" Type="string" AutoIncrement="false" Key="false" CaseSensitive="false" MaxLength="256" MinLength="0" Required="false" Scale="0" />
<Property ID="CurrencyIdInvoice" Type="string" AutoIncrement="false" Key="false" CaseSensitive="false" MaxLength="256" MinLength="0" Required="false" Scale="0" />
<Property ID="CurrencyNameInvoice" Type="string" AutoIncrement="false" Key="false" CaseSensitive="false" MaxLength="256" MinLength="0" Required="false" Scale="0" />
<Property ID="DateInvoice" Type="string" AutoIncrement="false" Key="false" CaseSensitive="false" MaxLength="256" MinLength="0" Required="false" Scale="0" />
</ClassType>
</ClassTypes>
<RelationshipTypes>
<RelationshipType ID="VendorId" Accessibility="Public" Abstract="false" Base="System!System.Reference">
<Source ID="Source_333db18d_fa80_4e34_8143_33f5ee55f826" MinCardinality="0" MaxCardinality="2147483647" Type="Invoice" />
<Target ID="Target_c0667ccc_0994_4ff2_b644_2ee824091687" MinCardinality="0" MaxCardinality="1" Type="Alias_1b8786d7_42a6_4c5a_b69e_2872748fd764!Vendor" />
</RelationshipType>
<RelationshipType ID="AssetsId" Accessibility="Public" Abstract="false" Base="System!System.Reference">
<Source ID="Source_6d3acf07_7cea_48cd_83bd_7b8c27f1fa55" MinCardinality="0" MaxCardinality="2147483647" Type="Invoice" />
<Target ID="Target_813d3b24_2a1b_438b_8246_9a6d8a53efbb" MinCardinality="0" MaxCardinality="1" Type="Alias_1bb11a7b_68fd_473f_89ec_2ce4f64b5401!Asset" />
</RelationshipType>
</RelationshipTypes>
<TypeProjections>
@Roman_Nepomniashchii - You'll have to create a form for the Custom Class in the authoring tool and show the relationship on that form.
You can show the relationship in the portal if you create a custom form for your custom class AND create a type projection with the new relationship as a component.