Edit in GitHubLog an issue

Integration with Adobe Experience Cloud

Note: this section shows how to integrate custom App Builder applications with Adobe Experience Cloud (AEC). App Builder can also be used to extend the AEC User Interface, as discussed here, with links to Developer documentation and a sample project.

Adobe Experience Cloud (AEC) consists of solutions to power insights, content, engagement, commerce, optimization, and more. Its unified shell web application provides a unified user experience for customers to manage these solutions from a single place.

AEC solution experiences run within an iframe in the unified shell, and can interact with its including the topbar, menus, nps, and alerts. These interactions are made possible through:

  1. A module-runtime script injected into the product iframe

  2. The @adobe/exc-app package that provides an API to interact with the injected module-runtime script

Getting started

To get started with this integration, first:

  1. Include the runtime loader script on the home page
  2. Include the @adobe/exc-app package in your NPM package.json and invoke the init API:
Copied to your clipboard
import React from 'react';
import ReactDOM from 'react-dom';
import {init} from '@exc/runtime';
init(runtime => {
// Example initialization for a solution that uses React
ReactDOM.render(<MyProductPage runtime={runtime} />, document.querySelector('#main'));
});

Features

APIs

This is a glossary of Experience Cloud integration APIs, with links to details:

Index lets solutions initialize the application, provide access to the runtime object from anywhere in the app, and listen to events.

Page lets solutions interact with and personalize the main page by setting the title or favicon, refreshing the solution iframe, and so on.

TopBar lets solutions interact with and personalize the top bar by configuring the left-side solution area, setting up workspaces, arranging custom search, and so on.

User requests user-specific information including IMS organization, IMS profile, access token, tenant, and so on. It also gives solutions capabilities such as notifying the shell that a session has expired and configuring logout URLs to expire custom sessions.

Events

Events are emitted by the module-runtime when it receives certain messages from the unified shell.

Ready

The Ready event fires when the initial configuration is received from the shell. It makes sense to wait for this event before rendering the application or setting any workspaces: the locale is required for globalization, and workspaces must be translated before setting them on the shell, since we don’t have translations for every solution’s workspaces.

Example:

Copied to your clipboard
import excApp from '@exc/runtime';
function setup() {
const runtime = excApp();
runtime.on('ready', ({imsOrg, imsToken, locale}) => {
this.setState({
imsOrg,
imsToken,
loading: false,
locale
});
});
}

Payload:

  • baseUrl: Base url for the solution
  • environment: Environment being used
  • historyType: Type of history
  • imsEnvironment: IMS environment, which follows general rules unless the shell_ims query parameter is in use
  • imsOrg: IMS organization ID
  • imsOrgName: Name of the IMS organization
  • imsProfile: Object containing information about the authenticated user
  • imsToken: IMS token
  • locale: Locale string for globalization
  • preferredLanguages: List of preferred languages from the user's IMS profile
  • shellInfo: Shell-related information needed to populate the shell UI
  • tenant: tenant name for current ims organization

Configuration

The Configuration event fires when any configuration change arrives from the shell. It has the same payload as the Ready event.

Example:

Copied to your clipboard
import runtime from '@exc/runtime';
function setup() {
const runtime = excApp();
runtime.on('configuration', ({imsOrg, imsToken, locale}) => {
if (imsOrg !== this.state.imsOrg) {
// Change org
}
this.setState({imsOrg, imsToken, locale});
});
}

History

The History event fires when the browser history changes and the frame needs to know about it.

Example:

Copied to your clipboard
import runtime from '@exc/runtime';
function setup() {
const runtime = excApp();
runtime.on('history', ({type, path}) => {
const cleanedPath = path[0] === '/' ? path : '/' + path;
if (type === 'external' && this.history.location.pathname !== cleanedPath) {
this.history.replace(cleanedPath);
}
});
}

Payload:

  • type: Internal or external, depending on the event's origin
  • path: The new path, for updating the browser history

Licensing

This project is licensed under the Creative Commons Attribution-NoDerivatives 4.0 International Public License. See Licenses for more information.

Next steps

Explore details of the Index, Page, TopBar, and User external modules.

Explore the attributes and behavior of Adobe Experience Cloud Interfaces:

Modules

Runtime

PageTopbarUser
`

Return to the Guides Index.

  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2025 Adobe. All rights reserved.