Initialize the Framework
You can can use the initialize API provided by CX_SVC_UI_EVENTS_FRAMEWORK.uiEventsFramework to initialise UEF in your third-party application:
/// <reference path="uiEventsFramework.d.ts"/>
const frameworkProvider: IUiEventsFrameworkProvider = await CX_SVC_UI_EVENTS_FRAMEWORK.uiEventsFramework.initialize('MyFirstExtensionID','v1');
Once initialized, you can use the frameworkProvider
frame:
interface IUiEventsFrameworkProvider {
requestHelper: IRequestHelper;
dispose: () => void;
getVersion(): string;
getApplicationName(): string;
getCurrentTabId(): Promise<string>;
getActiveTabId(): Promise<string>;
getAvailableRecords(tabId?: string): Promise<IRecordContext[]>;
getActiveTab(): Promise<ITabContext>;
getTabContext(browserTabId?: string): Promise<ITabContext>;
getAvailableTabs(): Promise<ITabContext[]>;
getGlobalContext(): Promise<IGlobalContext>;
getModalWindowContext(): Promise<IModalWindowContext>;
getSidePaneContext(sidePaneId: string): Promise<ISidePaneContext>;
}
Check Integrate an External Application with Service Center for instructions how to use it and reference for a detailed explanation of each method available in the interface.
Note: The Dispose method is available in frameworkProvider. When called, all the
currently active subscriptions are destroyed. You application must initialize
(CX_SVC_UI_EVENTS_FRAMEWORK.uiEventsFramework.initialize ) again to use the
UEF.