How to get AppInstanceId

Options
sbrum
sbrum Newcomer
edited June 26 in Workspace SDK

I'm attempting to set up the Workspace SDK in container mode, but that requires an AppInstanceId, how do I obtain this?

I have Refinitiv Workspace up and running, and can navigate to my webpage that has the app running the WorkspaceSDK, and I have the Loader.init set up with everything it needs, except I'm not sure where to get the AppInstanceId from.

Any help would be appreciated. Thank you.

Best Answer

Answers

  • Hello @sbrum

    I am not sure what you mean by container mode - the SDK and the components have to be on a same physical machine where the Workspace is running.

    Moreover, I would recommend that all new developments use the LD Library for TypeScript instead of the non strategic Workspace SDK.

    The LD library can be used with Workspace in a browser and there is an example of this on the GitHub.

  • sbrum
    sbrum Newcomer

    Within the Workspace SDK (found here: https://developers.lseg.com/en/api-catalog/workspace-sdk/workspace-sdk/documentation). I am attempting the following:

    Loader.init(
    { AppInstanceId: 'YOUR_APP_ID', Mode: Modes.Container },
    ['DesktopAgent']
    ).then(async (WSDK: WorkspaceSDK) => {
    await WSDK.DesktopAgent.open('Q');
    }).catch((error) => {
    console.error('Error loading Workspace SDK');
    });

    And looking to find the YOUR_APP_ID, or how to obtain it while running within the Desktop application.

    Hope this helps, thank you.

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @sbrum

    You can try the following APP IDs.

    Otherwise, please contact the LSEG Workspace team, as mentioned by my colleague.