LeanIX Integration

Automatically catalogue deployed CPI iFlows as fact sheets in your LeanIX workspace — with field mapping, tagging, and on-demand sync from the Runtime tab.

Enterprise feature: LeanIX Integration is available on the Enterprise plan. The Settings card is visible to all admins, but sync actions require an active Enterprise licence.

What It Does

LeanIX Integration connects CPI Studio to your LeanIX workspace so that every deployed iFlow can be represented as a fact sheet. This gives your enterprise architecture team a live, always-accurate inventory of your integration landscape — without manual data entry.

Prerequisites

Configuration

Open Settings → LeanIX Integration in CPI Studio.

Step 1 — Connection

FieldDescription
LeanIX Host Your workspace host, e.g. your-company.leanix.net. Do not include https://.
API Token A LeanIX API token with read/write access to fact sheets. Generated under LeanIX Settings → Technical Users.

Click Test Connection to verify credentials before saving. A successful test fetches your workspace metadata and populates the Fact Sheet Type dropdown.

Step 2 — Fact Sheet Type

Select the LeanIX fact sheet type to use when creating new records. Common choices:

The dropdown is populated from your LeanIX workspace after a successful connection test. You can also type any type name directly if your workspace uses a custom model.

Step 3 — Category (optional)

Some fact sheet types support a category field that classifies the record within LeanIX (e.g. Interface/Messaging for ITComponent). CPI Studio fetches known categories from your workspace and shows them as suggestions in a combo-box. You can:

Leave blank to omit the category field when creating/updating fact sheets.

Step 4 — Field Mapping

The Field Mapping section lets you control exactly which iFlow metadata lands in which LeanIX field. Each row maps one iFlow attribute to one LeanIX field path.

iFlow FieldDescription
nameThe iFlow's display name as shown in SAP CPI
idThe technical artifact ID
descriptionThe iFlow description text
versionCurrent version string (e.g. 1.0.4)
package_idThe integration package the iFlow belongs to
StatusRuntime status: Started, Stopped, Error

Common mapping examples:

name        →  /name
description →  /description
package_id  →  /displayName
Status      →  /tags (via default tag)

If no field mapping is configured, CPI Studio writes a standard metadata block to the /description field containing the iFlow name, package, tenant host, and sync timestamp.

Step 5 — Default Tags (optional)

Enter one or more tag names (e.g. CPI-Managed, SAP-Integration) to apply to every synced fact sheet. Tags must already exist in your LeanIX workspace tag library. Separate multiple tags with commas.

Step 6 — Save

Click Save Settings. Configuration is stored in leanix_config.json inside the app's data directory and is included in the Settings → Export bundle.

Syncing iFlows — Runtime Tab

The primary sync workflow lives in the Runtime tab, not the Settings page, because that is where all deployed artifacts are visible.

1. Open the Runtime tab

Navigate to Runtime and click ↻ Refresh if the list is empty. All currently deployed iFlows appear in the table.

2. Click LeanIX Match

When LeanIX is configured, a 🔷 LeanIX Match button appears in the toolbar. Click it to cross-reference every artifact in the table against your LeanIX workspace. A LeanIX column appears in the table showing one of:

StatusMeaning
✓ LinkedA fact sheet is already connected to this iFlow. The ↗ icon opens the fact sheet in LeanIX.
⚠ Not LinkedNo fact sheet found. A Create button appears to create one now.

3. Create or update fact sheets

After a successful sync the row status changes to ✓ Linked and a link to the fact sheet is shown.

How Authentication Works

CPI Studio authenticates with LeanIX using OAuth 2.0 client_credentials flow:

  1. Your API token is exchanged for a bearer token at https://<host>/services/mtm/v1/oauth2/token
  2. The bearer token is cached for its validity period (usually 1 hour) and refreshed automatically
  3. All GraphQL and REST calls to /services/pathfinder/ use this bearer token

Your API token is never sent to third-party services — all calls go directly from the CPI Studio server to your LeanIX workspace.

Troubleshooting

Connection test fails

Category dropdown is empty

If the category combo-box shows no suggestions, your LeanIX API token may not have read access to all fact sheets in the workspace, or the workspace uses a free-text category field with no predefined values. Simply type the category value manually — it will be accepted.

Fact sheet created but fields are blank

Check your field mappings in Settings. If no mappings are configured, only the /description field is written. Add at minimum a name → /name mapping so the fact sheet gets a proper display name.

Sync says "Linked" but I can't see the fact sheet in LeanIX

The fact sheet may be restricted by ACL (access control) in LeanIX. Ask your LeanIX workspace admin to grant the service account read access, or check if the fact sheet is archived.

Changes not persisting after restart on Cloud Foundry

By default the CF container's filesystem is ephemeral. Use Settings → Export and set the APP_SETTINGS environment variable in your manifest.yml to persist configuration across restarts. See Configuration for details.