Forum Widgets
Latest Discussions
Format for sending images to Azure OpenAI
Hi, I logged into Azure OpenAI Studio and tried to send an image in the OpenAI chat. The image was successfully sent, and OpenAI provided a correct response based on the error message in the image. While checking the backend code for sending the image to the OpenAI client, I couldn't find the exact format required for the image URL. What should be the format of image url. I have tried it out by sending as base 64 and i didnt get any proper response. // Initialize the AzureOpenAIClient var azureClient = new AzureOpenAIClient(new Uri(endpoint), credential); // Initialize the ChatClient with the specified deployment name ChatClient chatClient = azureClient.GetChatClient("gpt-4o"); // Create a list of chat messages var messages = new List<ChatMessage> { new UserChatMessage(" image_url "), new AssistantChatMessage("The error message \"We couldn't upload your data. This request is not authorized to perform this operation\" indicates that you do not have the necessary permissions to upload files to the Azure Blob Storage. Here are steps you can follow to resolve this issue: 1. **Check Your Permissions**: - Ensure that you have the correct pe Could you please confirm whether this functionality can also be used with the 'On Your Data' feature. If the text in the image is stored within documents in a specific index, can we use the image to retrieve relevant solutions from the index?Lakshmi_145Mar 25, 2025Iron Contributor14Views1like1CommentMicrosoft.Bot.Connector SendToConversationAsync Failed - 'Forbidden'
Hi. We use Microsoft.Bot.Connector (4.22.9) SendToConversationAsync for sending an activity to a conversation. Most of them are processed successfully, but some fail with 'Operation returned an invalid status code 'Forbidden'. How can I handle it? What is the reason? Also, I have a second question about "blocked conversation." If the user blocks the conversation, I think SendToConversationAsync will fail, too. How can I handle this, and what kind of error will be raised?Paul_ByMar 24, 2025Brass Contributor81Views0likes5CommentsNeed help intercepting outgoing messages and accessing chat history in Teams bot (python)
Hi everyone, I’m relatively new to programming and have been experimenting with the Teams AI Library in Python. I’ve created a basic bot application using the Teams Toolkit with the Custom Engine Agent template. So far, so good, but I’m stuck on two specific tasks and would appreciate some guidance. Here’s what I’m trying to achieve: Intercept outgoing messages before they are sent: I’d like to capture and potentially modify messages just before they are sent out by the bot. Access the conversation history: I want to retrieve the chat history for the current conversation. I’m wondering if there’s a simple way to do this without overhauling the existing logic. Specifically: Can I use a decorator in bot.py to intercept outgoing messages without disrupting the rest of the bot’s functionality? Is there an even simpler solution that I might be missing? TL;DR: New to programming, using Teams AI Library in Python with a basic bot. Need to: Intercept outgoing messages before they’re sent. Access conversation history. Is a decorator in bot.py the way to go, or is there a simpler solution? Thanks! Looking forward to your suggestions!SolvedGPhbtMar 21, 2025Copper Contributor77Views0likes4CommentsShowing intranet sites (Sharepoint) inside teams client
Hi, Im a rookie when it comes to teams-app development, but our organization has a need for custom apps showing different Sharepoint pages to different users. Originally we intended to use Viva Connections, but as of now, it does not seem to fit our needs because we have at least 4 different experiences (School A student, School A teacher, School B student and School B teacher), and we dont want either of them to show the dashboard (we want every user to see its respective Sharepoint site directly because we find it easier to display relevant information here). I have suggested to one of our IT-admins that we disable the default landing page from Sharepoint Management Shell, but they say this will lead to everyone seeing the same default page (tenant-wide). We dont want that, we want all the different types of users to see their respective home site, according to the viva experiences we set up, but without having to load the viva-dashboard first. It may seem mundane, but our (young) users struggle to find our "homesite" this way. As a workaround i figured we created teams custom apps through the developer portal, showing the Sharepoint sites directly. This also allows us to pin both the teacher and student portal for our teachers/staff, which is really handy for easy access. When i created the apps, I added "?app=portals" behind the web content URL in the manifest/app developer portal, so that the home site navigation bar is showing inside the teams app. End goal being they can use the home sites and every sub-site directly in the custom app inside teams. This worked like a charm for a couple of days, but now whenever we use the navigation bar inside the app, it redirects the user to external browser. The frustrating part is that some of my navigation bar links works inside the teams client, but most do not, and sometimes it takes a minute after i start the application where everything works the way i want, where i can navigate the home sites inside teams, but then the teams app suddenly remembers to kick me out into default web browser... Same happens on phone. My problem: My custom teams app (personal tab), redirects user to external browser when clicking links from navigation bar, even though they have the same ourtentant.sharepoint.com domain. My goals: I want to show SharePoint site content inside teams client, without being redirected to browser I want the SharePoint content to be as easy to reach as possible, with the fewest amount of clicks for the 4 different user groups when they open Teams client. Any tips as to how i can reach our goals here? Either through custom apps or through viva?FredeidsMar 21, 2025Copper Contributor54Views0likes2CommentsMS Teams access token signature is invalid
I am trying to validate an access token from ms teams in my backend application. The validation fails because the siganture of the token is invalid. This is how I obtain the token: export class MyWebPart extends BaseClientSideWebPart { protected async onInit(): Promise<void> { await super.onInit(); this.context.sdks.microsoftTeams?.teamsJs.authentication.getAuthToken() .then(token => sendToBackend(token)); } } When I copy the token into JWT.io it says that the signature of the token is invalid. I notice that in the token the issuer is: https://sts.windows.net/{{INSERT TENANT ID}}/ and in the openid-configuration: https://login.microsoftonline.com/{{INSERT TENANT ID}}/v2.0 How do I get a proper token?KvDaalenMar 17, 2025Copper Contributor90Views0likes5CommentsDeeplink Navigation Issue in Published MS Teams Custom App on Mobile Devices (iOS & Android)
Description: We are experiencing an issue with navigation in our published MS Teams custom app. The app has a Tab with personal scope and a Bot. The problem arises for a few users (mostly on iOS devices) when they navigate to the Tab from the chat section of the Bot by clicking on a button that deeplinks to the Tab. Expected Behavior: The button click should trigger the deeplink and open the designated Tab and the specific page within the Tab in MS Teams app. Actual Behavior: iOS devices display an error message "Link not Supported. You can't open this link on the mobile app. Please open it on the desktop or web app." Android devices successfully open the Tab, but navigate to the default home page instead of the intended page within the Tab. Error Message: Details: The navigation works perfectly on the Desktop App and Web Browser. Sample Deeplink Used: let obj = { "params": paramsObj, "subdomain": subdomain, "pageRoute": "home" }; let subEntityId = { "subEntityId": obj }; var encodedWebUrl = ""; var encodedContext = encodeURI(JSON.stringify(subEntityId)); let tabUrl = "https://teams.microsoft.com/l/entity/" + manifestObj.id + "/agentTabId?webUrl=" + encodedWebUrl + "&label=entityLabel&context=" + encodedContext; cardObj = { ... { title: 'Open in Tab', type: 'Action.OpenUrl', url: tabUrl, } ... } Request: We need assistance in resolving this issue to ensure smooth navigation for all users, especially on iOS devices. Additionally, we need guidance on ensuring that Android devices navigate to the correct page within the Tab rather than the default home page. Thank you for your support.santhosh_sjMar 14, 2025Copper Contributor470Views0likes6CommentsCreating Workflows is disabled in somewhere
Hi, I was following this guide: Prerequisites to get the the predefined workflow (Post to a channel when a webhook request is received) done. In the next section in step seven instead of having positive sign, I do have a message "Looks like this workflow is disabled by your organization". Anybody knows what other prerequisites the Workflow could have? What else I should have enabled? Somewhere I saw info that I should have "Entra ID \ Logic Apps" enabled, but that is not so clearly stated in anywhere. Something should be enabled (or not locked) in Power Apps site?2.3KViews0likes5CommentsHelp with Deploying AI Agents to Microsoft Teams Chats
Hello, I need help with deploying AI Agents (bots) to Microsoft Teams chats. Here's my current setup: - I have a REST API endpoint that processes user queries and provides LLM-based responses. - Users on my platform can create custom AI assistants. What I need assistance with is: - How to deploy these AI bots into Microsoft Teams chats, allowing end users to create and integrate their assistants directly into Teams. - Any resources or step-by-step guidance on bot registration, deployment, or integrating custom bots would be appreciated. Thank you for your help!Dalvir82Mar 11, 2025Copper Contributor520Views0likes4CommentsCreateChannel in GraphAPI sometimes results in not creating the corresponding Sharepoint/OneDrive
Currently the creation of a channel through the Graph API frequently results in the relative, corresponding Sharepoint folder not being created. When using the Graph API to create a channel the response indicates creating the channel was a success, but when going to the files tab it shows: "Your files can’t be found, working on it to restore them." After having clicked on the files tab in the Teams UI, the folder is created eventually (after a couple of minutes). But because automated processes depend on the channel folder, we don’t want to ask the user to manually open the team before the other processes can continue. So: Team created: Ok -> Channel created: Ok-ish (But missing the linked folder) -> One-drive/share point folder, with the name of the channel: Not created Sometimes the folder is created properly, but lately more often it is not created (Not even after 3-4 days of waiting) until the user opens the files tab in the Teams client. This behaviour is new since it worked flawlessly until a week ago. Is there a known workaround for this?sgsmittalMar 11, 2025Copper Contributor9.9KViews1like28CommentsRSC permissions cause app to fail installation in personal scope
I am trying to update an existing up to send notifications. The plan is to use RSC permissions for it. I configured the manifest (v 1.19) with the following scopes: "authorization": { "permissions": { "resourceSpecific": [ { "name": "TeamsActivity.Send.Chat", "type": "Application" }, { "name": "TeamsActivity.Send.Group", "type": "Application" }, { "name": "TeamsActivity.Send.User", "type": "Application" } ] } }, I then sideloaded it successfully with this configuration into a team and also into a chat. However when I try to install it into the personal scope directly I get the error in a dialog box: Something went wrong In the network tab of the web inspector I see that this call fails with 403: https://teams.microsoft.com/api/mt/emea/beta/users/apps/definitions/appPackage The body of the response says: {"errorCode":"WebApplicationInfoIdConflictOnSideloadingIntoTeam"} However, when I change the included permissions in the manifest to only TeamsActivity.Send.Group the app installs successfully into personal scope "authorization": { "permissions": { "resourceSpecific": [ { "name": "TeamsActivity.Send.Group", "type": "Application" } ] } }, So I guess it has nothing to do with an id conflict. I also made sure to remove all old instances of the sideloaded app before (which was never a problem so far). How can I use all three RSC scopes in my app manifest and still install the app into the personal scope. Or what could be wrong? Anything I could check to figure out why this is not working but only the TA.Send.Group scope?jocschMar 10, 2025Brass Contributor78Views0likes2Comments
Resources
Tags
- microsoft teams1,686 Topics
- developer1,312 Topics
- meetings228 Topics
- Chat217 Topics
- Administrator138 Topics
- Settings105 Topics
- Calling101 Topics
- files64 Topics
- teams53 Topics
- devices52 Topics