How to get AppInstanceId

sbrum
sbrum Newcomer

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.