How to get AppId

G9000 0 Reputation points
2024-05-09T13:34:53.81+00:00

When running locally, the stageView opens flawlessly, and the appId that works is called M365_APP_ID. However, after provisioning and running it on the Azure cloud environment, none of the IDs seem to work. I'm unsure about the exact steps and which appId I should be using in the cloud and production environment. I have tried all ID on the env none work.

My usage scenario Is when the user clicks on any video it's going to open in stage view

 app.initialize().then(() => {
      if (stageView.isSupported()) {
        stageView
          .open({
            appId: config.appId as string,
            contentUrl: `${window.location.origin}/stageView?mediaUrl=${mediaAsset?.url}&thumbnailUrl=${coverAsset.url}&autoplay=true`,
            title: title,
            websiteUrl: window.location.origin,
            openMode: stageView.StageViewOpenMode.modal,
            threadId: "",
          })
          .catch((error) => {
            console.error(error);
          });
      }
    });
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,906 questions
{count} votes