SAP LeanIX GraphQL vs Integration API: Safe Fact Sheet Sync and External-ID Mapping
Free sample lesson · open to everyone
Synchronize application fact sheets from a configuration-management source without duplicating inventory or overwriting governed fields. SAP LeanIX distinguishes its GraphQL API, used for interacting with Fact Sheets and relations, from its Integration API, designed for scheduled external-data integration using connector configurations and data transformations
In this lessonShow sectionsHide sections
Visual overview
The situation: a real project scenario
A service catalog renames 'OrderHub' to 'Order Management Platform' but retains CI-042. A naive importer creates a second application fact sheet, inflating transformation cost forecasts. Correct external-ID matching updates the existing fact sheet and leaves architecture-owned lifecycle/strategy fields untouched.
Explanation
Direct answer
Synchronize application fact sheets from a configuration-management source without duplicating inventory or overwriting governed fields.
What SAP does — and what this lesson does not claim
SAP LeanIX distinguishes its GraphQL API, used for interacting with Fact Sheets and relations, from its Integration API, designed for scheduled external-data integration using connector configurations and data transformations. The right approach depends on source authority, data volume, error handling and ownership. Existing fact sheets can have relationships and lifecycle attributes managed by other teams; a synchronization is not a license to erase them.
Product version, edition and access boundaries
SAP LeanIX Enterprise Architecture SaaS API and configuration must be inspected in the tenant. The GraphQL schema, Integration API configuration/LDIF and authentication scopes can change. Do not paste an untested GraphQL mutation or invented endpoint into production.
Prerequisites and sample landscape
Use a documented sandbox, not a customer production tenant. Confirm your team's module licensing, roles, published integration interfaces, company/plant setup, test data retention and release-specific SAP documentation. Test records and quantities below are deliberately synthetic. Every real update requires business ownership, appropriate authorization and a recovery path.
Implementation: step-by-step workflow
1. Scope the evidence and prerequisites
Define an authoritative source record such as CMDB CI-042 for application 'OrderHub' and determine the exact SAP LeanIX Fact Sheet type and required relation types. Choose external source ID as an immutable key and specify which fields the CMDB owns versus those curated by architecture reviewers.
2. Validate configuration and data ownership
Inspect the SAP LeanIX developer/API documentation and workspace API explorer for the current schema. For targeted Fact Sheet reads and relationship changes, compare GraphQL; for recurring bulk source synchronization with mapping/transform behavior, evaluate the Integration API. Document why each interface fits before implementing either.
3. Build the controlled scenario
Configure a least-privilege technical identity using SAP LeanIX-supported authentication (technical-user OAuth). Store token/secret in a vault and validate scopes without exposing full API responses publicly. Test a read of the exact target record with fields the integration actually needs.
4. Execute and inspect the result
Produce a synthetic mapping from external CI ID to Fact Sheet external ID and relation target, including lifecycle date, owner and last-source-update time. Run in a limited scope/dry-run mode where available; review created, updated, unmatched and ignored records before enabling a schedule.
5. Test a deliberate failure
Introduce a renamed application with the same CI ID and a genuine replacement application with a new CI ID. Confirm the rename updates the same fact sheet rather than creating a duplicate. Do not match by display name alone because names, case and legal ownership can change.
6. Recover and reconcile
Implement a reconciliation report: source 100 active CIs versus mapped SAP LeanIX objects, exceptions for unmatched or ambiguous identifiers and field-level ownership conflicts. Treat archived fact sheets and removals separately; an absent source record should not trigger automatic destructive deletion without an approved policy.
7. Approve the release and monitor
Schedule the integration with run IDs, last-success time, error alerts, retries and bounded rate handling. Capture schema-change detection and a recovery plan so that one failed batch cannot silently leave half the portfolio stale.
Real project scenario and target outcome
A service catalog renames 'OrderHub' to 'Order Management Platform' but retains CI-042. A naive importer creates a second application fact sheet, inflating transformation cost forecasts. Correct external-ID matching updates the existing fact sheet and leaves architecture-owned lifecycle/strategy fields untouched.
Worked example: data, decisions or pseudo-code
Illustrative sync mapping — NOT LeanIX API wire syntax:
source: CMDB; externalId: CI-042; factSheetType: Application
source.name → LeanIX displayName (owned by CMDB)
source.businessOwner → proposed owner relation (requires approval)
SAP LeanIX lifecycle/state → retained as architect-owned
Run 01: created=0, updated=1, ambiguous=0
Negative: same display name / different CI IDs must not be merged.
Negative tests and troubleshooting
If duplicates emerge, compare external IDs, mapping normalization and archived fact sheets; do not delete at scale first. If an integration succeeds with outdated fields, check which system is authoritative and the last-sync timestamp. If authentication fails, verify token issuer/scopes and correct tenant URL before weakening permissions.
Common mistakes and risk controls
Never assume GraphQL and Integration APIs have identical payloads or scopes. Avoid destructive synchronization on null values, name-only upserts and mass archive operations. The SAP LeanIX API docs describe special behavior around archived fact sheets and external IDs; test that policy explicitly.
Best practice and release criteria
Maintain an owner matrix by field, stable external IDs, tenant-specific schema validation, small-batch dry runs, non-destructive reconciliation, scoped API identities and a clear rollback for faulty imports.
Architect / senior consultant interview angle
Your first CMDB integration creates duplicate LeanIX Fact Sheets and unexpectedly clears architecture-owned lifecycle metadata. Walk through source-of-truth design, GraphQL vs Integration API decision, matching/archived behavior and a safe repair plan.
Practice self-check
What is a robust identity key for scheduled CMDB-to-LeanIX synchronization?
Answer and rationale are available in the linked Practice questions after the lesson.
Frequently asked questions
Q. Must I always use GraphQL to synchronize LeanIX fact sheets?
A. No. SAP LeanIX also offers an Integration API for external-data synchronization, while GraphQL is suited to interacting with fact sheets/relations through the tenant schema.
Q. Can a source deletion automatically archive a fact sheet?
A. Only under an explicitly governed synchronization and retention policy. Test absent-source and archived records separately to avoid accidental loss.
Primary and supplementary SAP references
Primary official SAP source: https://help.sap.com/docs/leanix/ea/sap-leanix-apis?locale=en-US
Supplementary official SAP source: https://help.sap.com/docs/leanix/ea/best-practices-for-integration-api
Implementation notes here are author-created learning examples grounded in product concepts; they are not copied screenshots or proof of SAP system execution. Verify exact transaction/app/API availability and technical syntax against your release.
Related lessons already published on ERPClimb
https://erpclimb.com/lessons/signavio-leanix-application-portfolio-guided-tutorial
https://erpclimb.com/lessons/signavio-process-to-architecture-capstone-guided-tutorial
Code example
ILLUSTRATIVE WORKED EXAMPLE — not drop-in executable SAP code or a screenshot. Validate edition, configuration and source APIs. Illustrative sync mapping — NOT LeanIX API wire syntax:source: CMDB; externalId: CI-042; factSheetType: Applicationsource.name → LeanIX displayName (owned by CMDB)source.businessOwner → proposed owner relation (requires approval)SAP LeanIX lifecycle/state → retained as architect-ownedRun 01: created=0, updated=1, ambiguous=0Negative: same display name / different CI IDs must not be merged. Verification checklist:• Confirm the input record and business owner• Execute only in an authorized test environment• Capture a successful output and an intentionally failed case• Check cross-system reconciliation before promoting changesWatch out
Common mistakes
Failure patterns specific to this workflow:
- Never assume GraphQL and Integration APIs have identical payloads or scopes. Avoid destructive synchronization on null values, name-only upserts and mass archive operations. The SAP LeanIX API docs describe special behavior around archived fact sheets and external IDs; test that policy explicitly.
- If duplicates emerge, compare external IDs, mapping normalization and archived fact sheets; do not delete at scale first. If an integration succeeds with outdated fields, check which system is authoritative and the last-sync timestamp. If authentication fails, verify token issuer/scopes and correct tenant URL before weakening permissions.
- A successful UI action does not by itself prove that the downstream system, permission boundary or business document was correct; inspect the final record independently.
Do this
Best practices
Implementation and quality checklist:
- Define an authoritative source record such as CMDB CI-042 for application 'OrderHub' and determine the exact SAP LeanIX Fact Sheet type and required relation types. Choose external source ID as an immutable key and specify which fields the CMDB owns versus those curated by architecture reviewers.
- Inspect the SAP LeanIX developer/API documentation and workspace API explorer for the current schema. For targeted Fact Sheet reads and relationship changes, compare GraphQL; for recurring bulk source synchronization with mapping/transform behavior, evaluate the Integration API. Document why each interface fits before implementing either.
- Configure a least-privilege technical identity using SAP LeanIX-supported authentication (technical-user OAuth). Store token/secret in a vault and validate scopes without exposing full API responses publicly. Test a read of the exact target record with fields the integration actually needs.
- Produce a synthetic mapping from external CI ID to Fact Sheet external ID and relation target, including lifecycle date, owner and last-source-update time. Run in a limited scope/dry-run mode where available; review created, updated, unmatched and ignored records before enabling a schedule.
- Introduce a renamed application with the same CI ID and a genuine replacement application with a new CI ID. Confirm the rename updates the same fact sheet rather than creating a duplicate. Do not match by display name alone because names, case and legal ownership can change.
- Implement a reconciliation report: source 100 active CIs versus mapped SAP LeanIX objects, exceptions for unmatched or ambiguous identifiers and field-level ownership conflicts. Treat archived fact sheets and removals separately; an absent source record should not trigger automatic destructive deletion without an approved policy.
- Schedule the integration with run IDs, last-success time, error alerts, retries and bounded rate handling. Capture schema-change detection and a recovery plan so that one failed batch cannot silently leave half the portfolio stale.
Operational safeguard: Maintain an owner matrix by field, stable external IDs, tenant-specific schema validation, small-batch dry runs, non-destructive reconciliation, scoped API identities and a clear rollback for faulty imports.
In the interview
Interview angle
Practical architecture/interview prompt: Your first CMDB integration creates duplicate LeanIX Fact Sheets and unexpectedly clears architecture-owned lifecycle metadata. Walk through source-of-truth design, GraphQL vs Integration API decision, matching/archived behavior and a safe repair plan.
Expected strong answer:
- Define the scope and SAP product edition: SAP LeanIX Enterprise Architecture SaaS API and configuration must be inspected in the tenant. The GraphQL schema, Integration API configuration/LDIF and authentication scopes can change. Do not paste an untested GraphQL mutation or invented endpoint into production.
- Present the verified SAP process: SAP LeanIX distinguishes its GraphQL API, used for interacting with Fact Sheets and relations, from its Integration API, designed for scheduled external-data integration using connector configurations and data transformations. The right approach depends on source authority, data volume, error handling and ownership. Existing fact sheets can have relationships and lifecycle attributes managed by other teams; a synchronization is not a license to erase them.
- Show the expected sample result: A service catalog renames 'OrderHub' to 'Order Management Platform' but retains CI-042. A naive importer creates a second application fact sheet, inflating transformation cost forecasts. Correct external-ID matching updates the existing fact sheet and leaves architecture-owned lifecycle/strategy fields untouched.
- Diagnose an actual failure: If duplicates emerge, compare external IDs, mapping normalization and archived fact sheets; do not delete at scale first. If an integration succeeds with outdated fields, check which system is authoritative and the last-sync timestamp. If authentication fails, verify token issuer/scopes and correct tenant URL before weakening permissions.
- Explain risks and release controls: Never assume GraphQL and Integration APIs have identical payloads or scopes. Avoid destructive synchronization on null values, name-only upserts and mass archive operations. The SAP LeanIX API docs describe special behavior around archived fact sheets and external IDs; test that policy explicitly.
Practice this lesson
Original educational case studies for SAP consultants, not official SAP certification exam questions. Verify product edition and implementation details against the current SAP documentation.
Quick check
0 of 1 questions attempted
Question 1 of 1
What is a robust identity key for scheduled CMDB-to-LeanIX synchronization?
Practise this in an interview
Answer in your own words and get instant feedback, the way an interviewer would judge it.
1Your first CMDB integration creates duplicate LeanIX Fact Sheets and unexpectedly clears architecture-owned lifecycle metadata. Walk through source-of-truth design, GraphQL vs Integration API decision, matching/archived behavior and a safe repair plan. Use a real-world SAP project case and a negative test.
Try a related Code Lab
This published exercise covers the same SAP topic. Apply the ideas in a hands-on scenario, then return to review your answers.
Open: SAP LeanIX API Sync: Fix Duplicate Fact Sheets After App Rename →Was this lesson helpful?
Keep exploring
Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.