Fact Sheet Mapping Between ServiceNow and SAP LeanIX

Configure mappings between specific fields in SAP LeanIX fact sheets and ServiceNow tables.

Fact Sheet Mapping

To configure mappings between fact sheet fields and ServiceNow tables, start by creating fact sheet mappings. After that, proceed to configure field mappings.

📘

Note

When you create a new ServiceNow configuration, it already contains default mappings. You can adjust the default configuration to suit your needs.

To view detailed information on mappings, you can download the mapping matrix.

Configuring a Fact Sheet Mapping

Follow these steps:

  1. On the ServiceNow configuration page, navigate to the Mappings tab.

  2. To create a new mapping, under Fact Sheet Mapping, click Add Fact Sheet Mapping. If the mapping you need already exists, select it and adjust the configuration as needed.

    Adding a Fact Sheet Mapping

    Adding a Fact Sheet Mapping

  3. Configure mapping parameters.

    1. Define the fact sheet type, synchronization direction, ServiceNow table, and synchronization mode.
    2. Configure field mappings. For detailed information, see Field Mapping.
    3. Optionally, configure synchronization filters (constraints) to limit the number of synced records. For details, see Synchronization Filters.
  4. To save a mapping without activating it, turn off the toggle next to the fact sheet type.

  5. Save your changes.

Once you’ve added fact sheet mappings, you can modify, activate, deactivate, or delete them.

Fact Sheet Mapping Parameters

For each mapping, you can define the rules for syncing specific fields between SAP LeanIX fact sheets and ServiceNow tables.

Fact Sheet Mapping

Fact Sheet Mapping

The table below lists fact sheet mapping parameters.

ParameterDescription
Fact Sheet TypeThe type or subtype of a fact sheet in SAP LeanIX, such as application, business capability, or tech category. This includes all fact sheets configured in your workspace's meta model, encompassing both standard and custom types and subtypes.
Direction / SourceThe direction of data synchronization: from ServiceNow to SAP LeanIX or the other way around.
ServiceNow TableThe name of the table in ServiceNow with its logical table name, for example, Business Application - cmdb_ci_business_app.
Sync ModeThe mode of synchronization defining how to handle objects in the target system that have no corresponding items in the source system. For detailed information, see Sync Mode.
Filter (Constraints)Optional filters that establish synchronization constraints. Examples include synchronizing applications with a particular lifecycle status or synchronizing only those software product models installed on a server tied to a managed business application. For detailed information, see Synchronization Filters.
Field MappingThe mappings between specific fields within SAP LeanIX fact sheets and ServiceNow tables. For detailed information, see Field Mapping.

Field Mapping

After setting up a fact sheet mapping, you can configure field mappings for it.

Configuring Field Mappings

Follow these steps:

  1. Hover over a fact sheet mapping, then click Configuration under Field Mapping.

    Navigating to Field Mapping Configuration

    Navigating to Field Mapping Configuration

  2. On the field mapping page, add mappings by clicking Add Fields, then configure mapping parameters. For more information on each parameter, refer to the following sections in this topic.

  3. If relevant, set up matching rules to define how the integration identifies matching items. For more information, see Matching Rules.

    Configuring Field Mappings for a Fact Sheet

    Configuring Field Mappings for a Fact Sheet

  4. Save your changes.

Field Mapping Parameters

The table below lists the parameters for configuring field mappings.

ParameterDescription
Mapping TypeThe type of field mapping. For detailed information, see Mapping Type.
LeanIX FieldFact sheet fields, tag groups, external IDs, subscription types, and lifecycles in SAP LeanIX. The list of available fields is based on the selected mapping type.
DirectionThe direction of data synchronization for a field: from SAP LeanIX to ServiceNow or the other way around.
ServiceNow FieldAttributes within the specified ServiceNow table.

Important: Not all ServiceNow attributes are supported for synchronization. While the FOREIGN_FIELD mapping displays all attributes available in the table, not every field is currently supported for synchronization with SAP LeanIX.
Additional Configuration Details (Configure Details button)Additional configuration parameters that are only available for certain mapping types, such as FIXED_VALUE. For detailed information, see Additional Configuration Details.

AI-Generated Field Mapping Suggestions

To streamline the process of configuring field mappings, you can use the AI capabilities optional feature. To learn how to activate this feature, see Activating AI Capabilities.

To generate field mapping suggestions using AI, on the field mapping configuration page, click Generate Fields. AI generates mapping suggestions based on common patterns and your system configuration. Before applying suggested mappings, review and adjust them as needed. You can edit fields manually as well as add or remove fields.

Generating Field Mapping Suggestions Using AI Capabilities

Generating Field Mapping Suggestions Using AI Capabilities

📘

Note

AI-generated field mapping suggestions can be inaccurate or misleading. Ensure to review suggestions and adjust them if needed before applying the changes.

Mapping Type

Mapping Type dropdown

Mapping Type dropdown

The following table contains mapping types.

Mapping TypeDescriptionMandatory FieldsSupported SN Attribute TypeSupported SAP LeanIX Field Type
FOREIGN_FIELDMaps the (untranslated) value (ignoring any labels in SN or SAP LeanIX) of a field to the corresponding field in the child system.Fact Sheet Field
Foreign Field
String
Choice (will send untranslated values)
Text, Location (will map the raw location address), Lifecycle (will map the name of the current phase), Lifecycle Phase (will map the start date of the respective phase).

Location and Lifecycle (current phase) fields can only be used as a source of data, synchronizing from SAP LeanIX to ServiceNow.
URLUsed to map the URL of the SAP LeanIX Fact Sheet to the foreign object.Foreign FieldStringn/a
FIXED_VALUEOnly to be used to set a constant string value to be sent on every synchronized object.Fact Sheet Field or Foreign FieldStringn/a
VALUE_MAPPINGUsed to map fields with multiple choices.Fact Sheet Field
Foreign Field
Choice (1:1 mapping only)* certain exceptions explained belowSingle Select, Multiple Select (See Advanced Information section)
SUBSCRIPTIONUsed to map subscription values between systems.Fact Sheet Field (Subscription Type)Reference Fields that directly refer to the sys_user or sys_user_grouptable.
e.g. business_owner field.

Glide List fields that directly refer to the sys_user table.
Subscriptions Tab data only
ARCHIVED_STATUS_MAPPINGOnly Allowed when SAP LeanIX is the source.

If a Fact Sheet is archived, then a special value is written to ServiceNow
Foreign FieldChoice.
e.g. operational_status field updated with 6. Which has the labelRetired.
n/a
TAG_GROUP_FIELDUsed to map tag group fieldsFact Sheet Field (Tags only / Other Tags)
Foreign Field
StringTag Groups, Other Tags
TAG_GROUP_MAPPINGUsed to map tag groups with multiple tags within them.Fact Sheet Field (Tags Groups)
Foreign Field
ChoiceTag Groups
EXTERNAL_IDThis type is used to map an SAP LeanIX ExternalId field to a ServiceNow column.Fact Sheet Field (Tags Groups)
Foreign Field
StringExternal ID Fields
RELATED_FACTSHEETSMaps a comma-separated list of Display Names of the related Fact Sheets found for the selected relation.Fact Sheet Field (relation name)
Foreign Field
String (Limited to 100 FactSheets, Once the limit is reached text added in the end (+X more)Relation

To learn more about field types in ServiceNow, refer to the ServiceNow documentation..

Additional Configuration Details

Configure Details is a button that is only offered for some special mapping types to provide more configuration, like a mapping of fixed values for choices.

One example of the use of the Configure Details section is the VALUE_MAPPING. VALUE_MAPPING is used when fixed values from SINGLE_SELECT fields must be mapped to choices in the CHOICE field type in ServiceNow.

The example below shows VALUE_MAPPING configuration of SAP LeanIX's businessCriticality field with ServiceNow's business_criticality attribute.

Here the left side indicates the Meta Model name values of within the businessCriticality field in SAP LeanIX. Similarly, the right side is mapped to the value of the choices within the business_criticality attribute in ServiceNow.

The left column contains the strings used on the SAP LeanIX side, and the right column contains the values used in ServiceNow choice fields.

The left column contains the strings used on the SAP LeanIX side, and the right column contains the values used in ServiceNow choice fields.

👍

Tip

Use Fact Sheet configuration menu to get the meta model key of the fields in SAP LeanIX. Translations are not relevant in the VALUE_MAPPING section

The meta model keys are visible within brackets, as seen below -

The `data-model` values in - "()"

The Meta Model values in - "()"

Similarly, within ServiceNow, they can be seen by right-clicking on the field and selecting "Show Choice List"(Admin access required) -

3496

Select - Show Choice List

Only the VALUES section is required for the mapping -

3496

Only the Value section is required for the mapping

Each VALUE_MAPPING is validated when you save the configuration, and during every synchronization, to ensure only valid values are used for mapping from SAP LeanIX to ServiceNow.

🚧

n:1 Value Mapping Supported only when the source of truth is SAP LeanIX

Attaching multiple values in the SINGLE_SELECT field to 1 VALUE in the Choice List field in ServiceNow is supported, provided the source of truth is SAP LeanIX.

`n:1` Value Mapping support. Business Operational and Administrative Service Criticality both get mapped to the Low choice in ServiceNow.

n:1 Value Mapping support. Business Operational and Administrative Service Criticality both get mapped to the Low choice in ServiceNow.

Synchronization Filters

Synchronization filters enable you to refine fact sheet mappings by limiting the number of records synchronized. The configuration of filters depends on which system is designated as the source of truth:

  • If SAP LeanIX is the source of truth, add the necessary filters in SAP LeanIX.
  • If ServiceNow is the source of truth, add the necessary filters in ServiceNow, then select these filters in SAP LeanIX. In this scenario, filters are referred to as constraints.

Additionally, you can configure graph rule constraints to determine whether a record should be synchronized based on a connection identified in ServiceNow.

Configuring Synchronization Constraints

Configuring Synchronization Constraints

Filtering from SAP LeanIX to ServiceNow

When SAP LeanIX is the source system, you can apply inventory filters to fact sheet mappings to only send specific fact sheet fields to the corresponding ServiceNow table. Here are examples of frequently used filters for application fact sheets:

  • Approved quality seal: Only send applications that have an approved quality seal to ServiceNow.
  • Active lifecycle phase: Only send applications that are in the Active lifecycle phase to ServiceNow.

To add a filter, follow these steps:

  1. Hover over a fact sheet mapping where the synchronization direction is from LeanIX, then click Filters under Filter.

    Configuring Sync Filters when SAP LeanIX Is the Source System

    Configuring Sync Filters when SAP LeanIX Is the Source System

  2. In the filter overlay that appears, select fact sheet attributes to be synchronized, then click Use Fact Sheet Filter.

  3. Save your changes.

Filtering from ServiceNow to SAP LeanIX

When ServiceNow is the source system, you can add a filter in ServiceNow to limit the number of records that are sent to SAP LeanIX. These filters are also referred to as constraints.

To add a filter, follow these steps:

  1. In ServiceNow, create a filter for the table from which data is synchronized. Once you save the filter, it appears in SAP LeanIX.

    You can create a filter by either impersonating an integration user or using an admin user. If you're impersonating an integration user, you can make the filter visible only to this user (me). If you're signed in as an admin, set the filter permission to everyone or group to ensure that the integration user can access the filter.

    Configuring a Filter in ServiceNow

    Configuring a Filter in ServiceNow

  2. In SAP LeanIX:

    1. Hover over a fact sheet mapping for which you created a filter, then click Constraints under Filter.

      Configuring Sync Filters in SAP LeanIX when ServiceNow Is the Source System

      Configuring Sync Filters in SAP LeanIX when ServiceNow Is the Source System

    2. In the overlay that appears, select the filter that you created.

    3. Save your changes.

📘

Note

The number of filters available for a table in ServiceNow depends on the visibility of those filters to the integration user (for example, leanix.integration). By default, a user can only view filters created by the same user for a specific table.

If the user belongs to a user group and the filter_group role is assigned to the user, they can view filters created for that group as well as filters created for all users.

Graph Rule Constraints

A Graph Rule Constraint controls whether a record is synchronized at all based on a connection found on the ServiceNow side. Depending on the ServiceNow table used in a mapping from ServiceNow to SAP LeanIX, different or no Graph Rule Constraint might be applicable.

The configuration dialog for Sync Constraints is opened when ServiceNow is the Source, the configured ServiceNow Table supports the Graph Rules, and the 'Constraints' button is pressed.

Adding a Graph Rule Constraint

Adding a Graph Rule Constraint

Various types of Graph Rules are explained as follows -

Graph RuleDefinitionRequired Active Mapping and Plugin
APPLICATION_SAM_CONNECTION or
APPLICATION_SAM_PRO_CONNECTION
Synchronize this Software Product Model or Hardware Product Model, if a connection to an Application mapped table exists that can be found via the SAM module.

Further filtering can be done while using this Graph Constraint. For more information, see Graph Rule Constraints.
for
APPLICATION_SAM_CONNECTION:
SAM + Discovery Service

for
APPLICATION_SAM_PRO_CONNECTION:
SAM PRO + Discovery Service

IT Component - Software/Hardware - cmdb_software_product_modelor
cmdb_hardware_product_model
IN_USE_SAM_CONNECTION or
IN_USE_SAM_PRO_CONNECTION
Synchronize this Software Product Model or Hardware Product Model, if a connection to Hardware exists that can be found via the SAM module.for
APPLICATION_SAM_CONNECTION:
SAM + Discovery Service

for
APPLICATION_SAM_PRO_CONNECTION:
SAM PRO + Discovery Service

IT Component - Software/Hardware - cmdb_software_product_modelor
cmdb_hardware_product_model
MODEL_CATEGORYSynchronize this Product Model, if a connection to a Model Category exists in SN.IT Component - Software - cmdb_software_product_model

Technical Categories - cmdb_model_category
APPLICATION_HARDWARE_CONNECTIONSynchronize this Hardware Product Model, if a connection to a Business Application exists.


Tip - Check the Additional Information tab for further filter options on this Graph Constraint.
IT Component - Hardware - cmdb_hardware_product_model

Application - cmdb_ci_business_app
IN_USE_HARDWARE_CONNECTIONSynchronize this Hardware Product Model, if a connection to a Hardware exists.IT Component - Hardware - cmdb_hardware_product_model
APPLICATION_SOFTWARE_MANAGEMENT_MODEL_CONNECTIONSynchronize this Software Product Model, if a connection to a Business Application exists that can be found via the Software Management module.Only supported when Legacy Configuration is in use

IT Component - Software - cmdb_software_product_model

Application - cmdb_ci_business_app
IN_USE_SOFTWARE_MANAGEMENT_MODEL_CONNECTIONSynchronize this Software Product Model, if a connection to a Hardware exists that can be found via the Software Management module.Only supported when Legacy Configuration is in use

IT Component - Software - cmdb_software_product_model

The relations between applications and IT components are discovered in ServiceNow using Graph Rule Constraints. This information is abstracted by the integration, and only the abstracted information is pulled into SAP LeanIX. Then the relations between applications and IT components can be fetched using the GRAPH_RULE_CONSTRAINT relation. For more information, see GRAPH_RULE_CONSTRAINT.

Advanced Mapping Use Cases

In this section, you can find advanced use cases for configuring fact sheet mappings.

Mapping Multiple-Select Fields

The integration can sync between Multiple Select fields in SAP LeanIX with Glide Lists fields of ServiceNow that refer to a table in ServiceNow.

Prerequisites

  • Multiple Select Field with values in SAP LeanIX
  • GlideList field in ServiceNow, with the values of the records you wish to map to SAP LeanIX or the sys_id of the records in the referenced table in ServiceNow.
3584

Example MULTIPLE_SELECT field in SAP LeanIX with the values of legal, sales, finance, and hr.

Within ServiceNow however, there can be two types of list fields -

  • List fields that reference another ServiceNow Table
3584

Example of a List field u_lix_multiple_select_bu_table which references the business_unit table in ServiceNow.

  • List fields that do not refer to another ServiceNow Table and have a choice list defined
3496

Example of a List field u_lix_multiple_select_no_reference which does NOT refer to any table but has set choices listed.

To map both of these fields, the Mapping Type of VALUE_MAPPING is used -

`VALUE_MAPPING` type dynamically understands if the SAP LeanIX field is `SINGLE_SELECT` or `MULTIPLE_SELECT`

VALUE_MAPPING type dynamically understands if the SAP LeanIX field is SINGLE_SELECT or MULTIPLE_SELECT

🚧

Make sure to fill in the extra fields section!

Mapping multiple select fields requires you to map the meta model name of the values of the multiple select field in SAP LeanIX with the values of either the sys_ids of the records or the values of the choices from the ServiceNow side.

  • Example Extra field mapping when the field is referencing another table -

Collect the sys_id of all the records you wish to map with the multiple select values in SAP LeanIX, this can be done for multiple records by exporting or by selectively copying the sys_id as follows -

3584

Copy or collect the sys_ids of all the records that are to be mapped in SAP LeanIX

These collected sys_ids can be mapped to SAP LeanIX as follows -

In this case, the ServiceNow side of the extra fields section expects for the `sys_id` to match to when sending or pulling data to sync with the Multiple Select Fields.

In this case, the ServiceNow side of the extra fields section expects the sys_id to match when sending or pulling data to sync with the Multiple Select Fields.

🚧

Unmapped values will be ignored

If the extra field section does not fully cover the mappings, any additional values on each system will be ignored by the sync.

Once saved, the sync will automatically match the sys_ID with the respective record in ServiceNow. Similarly, it will also match the sys_ID with the mapped field in SAP LeanIX from the extra fields section.

Examples -

3584

Example of the sync from SAP LeanIX sending the values to the highlighted glide list field.

3584

Example of the sync from ServiceNow sending the values to the highlighted multiple select fields in SAP LeanIX.

Mapping Lifecycle and Date Fields

This section provides an overview of the supported methods for syncing lifecycle and date fields between ServiceNow and SAP LeanIX. The following table details each scenario and the required configurations.

CaseDescriptionSource of TruthConfiguration
Case 1The current lifecycle phase is pushed from SAP LeanIX to a ServiceNow field.SAP LeanIXUse VALUE_MAPPING as the mapping type. In the LeanIX Field list, select the main field lifecycle, not one of the lifecycle phases (such as lifecycle/active or lifecycle/phaseIn). The synced value is not a Date but a String representing the current phase.
Case 2Lifecycle date values are pulled from ServiceNow to SAP LeanIX lifecycle phase fields.ServiceNowMap each Date field in ServiceNow to a lifecycle phase in SAP LeanIX, such as lifecycle/plan. The input date must be in the format yyyy-mm-dd (for example, 2014-01-01).
Case 3Lifecycle phase dates are pulled and pushed from SAP LeanIX to ServiceNow Date fields.SAP LeanIXMap each phase in SAP LeanIX, such as lifecycle/plan, to a Date field in ServiceNow.
Case 4String fields in SAP LeanIX pull date values from ServiceNow.ServiceNowIn the fact sheet configuration in SAP LeanIX, create a field of type String which is displayed as Date. In field mappings, you can use the FOREIGN_FIELD mapping type.

Custom Field Configuration in SAP LeanIX


Case 5String fields in SAP LeanIX push date values to ServiceNow.SAP LeanIXSee configuration details for case 4.

Mapping Multiple Fact Sheet Types to One ServiceNow Table

You can map multiple fact sheet types to the same ServiceNow table in the following cases:

  • ServiceNow is the source of truth for mappings.
  • Filters are set to ensure that there is no overlap in data synchronization.

An example scenario might involve records in ServiceNow that are not yet fully distributed across the appropriate tables, and instead, reside within a single table, such as the cmdb_ci_appl table. In this case, you can link this table to both applications and IT components, making ServiceNow the source of truth. To ensure accurate data synchronization, you also need to set appropriate filters.

`cmdb_ci_appl` table is linked to both Applications and IT Component Software with ServiceNow as the source of truth and appropriate Filters set.

Mapping Multiple Fact Sheet Types to One ServiceNow Table