App is not getting installed properly on other organization, what is the correct way to build with correct manifest configuration in Bot framework version 5?

SANDEEP KUMAR 25 Reputation points
2023-10-11T13:37:24.7666667+00:00

we tested the installation process of our app Tweelin in a new organization and were able to find an issue that the call is not working. Except for the calling feature, we were able to use all other features of the app.

Here are some steps we performed to debug:

  1. Checked the console log of the Bot that says internal server error due to lack of permissions. A log can be found here in paste bin and screenshot.
  2. We compared the permission of both apps. a. Tweelin app for Teams, b. Tweelin-aad: which is getting reflected on a new org after installation. The installation process is followed the same as provided in the Tweelin installation doc.
  3. The app was reflected in the Teams app. We installed Tweelin and created a wish then the call failed.
  4. We compared the latest manifest.dev.zip data with the one we submitted 5 months back.  

After going through the process, taking notes, and analyzing each parameter involved, here are our findings

  1. In the local development, we tested the credentials and ID involved. Tweelin app for teams on Tweelin Azure and App package > manifest.json. In this case, the app id of the Tweelin app for Teams matches with the bot id in the manifest.
  2. On installation in the new org, earlier when we created our first submission it used to create 2 apps in customer's organization Azure > Enterprise Apps. Screenshot of what we used to see. But now when we install it in an organization we can find only one app entry in the Enterprise App list. Current screenshot from other org Enterprise app list.
  3. On comparing both of them, there is a mismatch in ID and other parameters involved, and our app "Tweelin app for teams" that is attested with our MPIN Id is not reflected. We even tried with the manifest that we submitted 6 months back as our first submission for publishing but the situation remains the same.
  4. Our analysis raises 2 possibilities, 
    1. Some things got changed in the publishing process during migration from Bot framework versions 4 to 5 (from the Microsoft side ) because of which we are not seeing the same flow even on having the old manifest. A possibility is that we now need only 1 app instead of 2 (Bot and Tab aad).
    2. There might be some issues in ID mismatch or manifest configuration update and our primary "manifest.json" is not reflecting there. Our app details (not even name), privacy policy, or logo are not getting reflected correctly in the Enterprise Apps list of Target organization. We would need help from Microsoft dev who can verify the issue. Why do we even bother about these things? The reason is that all permission for calls and other management stuff is given to the "Tweelin app for teams" and our bot uses the same credentials and permissions. If this app is not getting added to the Target /customer organization then permission to bot is not granted. Due to this bot will not be able to perform graph api related tasks. We can say that our bot is not getting installed properly because if it did, an app with the correct name, logo, website, and other parameters would have been created. A reference to this is attached in the screenshots above.  We tried to find documentation/solutions to this but nothing worked for us. We request you to provide us clarification/resources about the current workflow of each step or if there is a known issue, please share some info with us and let us know the expected time to get it fixed.
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.
3,415 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.