Usually a meta-element in a mapping represents one element type, but it is possible to add additional types. Additional types may be defined, in which case the metaobject or metarelation represents multiple types of objects or relations.
If you do use the connection for import, and the additional types, which are known in the external application, are not all known in you model in Enterprise Studio, then upon import an object or relation will be created matching the first possible type from the list in the metaobject or metarelation.
When exported to Excel, all objects of the defined types are presented column representing the metaobject. In case of multiple relation types, all defined relations will be included in the cross-reference table in the worksheet.
When defining additional types for a ServiceNow connection, make sure that they match the existing tables in ServiceNow. If they don't, the tables in ServiceNow need to be defined first before you can export.
To add an additional object type, perform one of the following procedures. The procedures also apply to relation types.
Drag the object type
- In the model browser, select a model object of the object type you want to add, and drag it onto the metaobject in the diagram. The metaobject is extended with the additional type:
Type the object type name
- In the diagram, select the metaobject, and click
- In the properties window, click the Types tab, select the dotted line, type the name of the object type in the text box, and press Enter.
Since there is already a defined type, you do not need to type the metamodel name again when adding the new type. Adding the metamodel name is only needed if there is not type defined yet.