files
68 TopicsHow to Upload Files Using Office 365 Agents SDK Across Multiple Tenants
I'm currently working with the Office 365 Agents SDK and looking to implement a file upload feature that can work across multiple Microsoft 365 tenants. Specifically, I'm trying to understand: What is the recommended approach to upload files using the Agents SDK? How can this be done in a multi-tenant scenario, where files need to be uploaded for users across different organizations? Are there any authentication or permission considerations I need to keep in mind? If anyone has experience or sample code to share, it would be greatly appreciated!107Views0likes5CommentsImages in channel's Sharepoint storage not rendering in teams adaptive cards
Hello, we are trying to display images stored in Sharepoint in a teams adaptive card. The image will not display until the user has clicked on the 'files' tab for the channel. It returns with a 401, so Im guessing this initiates some kind of auth process. When they click on the files tab and return to the messages, the images are rendered as expected. We need to have security around our images, so we don't want to store them in another setting that might not have team-level authorization. Is there any way to make the sharepoint images show without clicking on the files tab first, such as triggering the sharepoint auth process programmatically? This is the image url format we are using: https://myaccount.sharepoint.com/sites/DefaultDirectory/Shared%20Documents%2FGeneral%2Fmy-notifications/2023-12-06T20.png The other issue is that Sharepoint images do not display in 'New Teams' at all. Is this a known issue with New Teams? Thank you for your help. Daniel1.3KViews0likes7CommentsHow to Download Video Clip from Microsoft Teams Programmatically
I’m developing a bot app for Microsoft Teams, and part of its functionality involves handling videos recorded using the Teams widget(see screenshot attached). I am receiving a video clip link in the bot app's backend message. Where is this video file uploaded and how can I download the video clip using that link? I have attempted the SSO auth via Entra ID to fetch the auth token and attached it against the GET request to the video clip link as the bearer token. But still getting 401 errors? Need help and guidance in this matter. Thanks.266Views0likes6CommentsCustom Teams AI Bot does not have attachment button
My team is developing a custom teams AI bot that allows for file uploads. When testing this feature using the edge and chrome debugging, the attachment button does not appear, or it will appear for a moment and then disappear. This seems to be an ongoing issue, and we would like to know if it has a simple remedy or if this problem needs to be escalated to Microsoft Engineers. Please see the following Microsoft developer forum topic discussing the same issue: https://techcommunity.microsoft.com/discussions/teamsdeveloper/file-upload-option-disappearing-in-teams-bot/4397456 My Manifest.json: Sensitive data has been removed "$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.19/MicrosoftTeams.schema.json", "manifestVersion": "1.19", "version": "2.0.0", "id": "${{TEAMS_APP_ID}}", "developer": { "name": "", "websiteUrl": "", "privacyUrl": "", "termsOfUseUrl": "" }, "icons": { "color": "", "outline": "" }, "name": { "short": "", "full": " " }, "description": { "short": "s", "full": "$[file('description.txt')]" }, "accentColor": "#005DAB", "bots": [ { "botId": "${{BOT_ID}}", "scopes": [ "personal", "team", "groupChat" ], "supportsFiles": true, "isNotificationOnly": false, ... }140Views0likes3CommentsUnable to load images in Link Unfurling Card
Hello, I am currently implementing the link unfurling feature, and am trying to include images. However, the images that are hosted by my service (currently deployed via ngrok for development purposes) are not loading correctly. I have noticed that the image URLs I place in my card get replaced with the URL pattern "https://us-prod.asyncgw.teams.microsoft.com/urlp/v1/url/content?url={image_url}". I have found that this service returns the error "Image file is corrupted" with a 415 status code. I have tried substituting these images for images at some public domain (e.g "https://raw.githubusercontent.com/..." and these images load successfully. I have verified that my ngrok URL is in the list of validDomains in my app manifest (even though githubusercontent.com is not). I have also gone so far as serving the same image file (verified via md5 hash) and included the same headers as the github image, but I still get the same 415 error. Can you confirm if there is an outright ban on ngrok or other reverse proxy tools? This tool is recommended in the Teams developer documentation. If this is not the issue, can you provide some further insight into the cause of the issue? I have included an example response to the link unfurling invoke request below. { "composeExtension": { "attachments": [ { "content": { "type": "AdaptiveCard", "body": [ { "columns": [ { "width": "auto", "items": [ { "altText": "Smartsheet logo", "horizontalAlignment": null, "style": null, "url": "https://us-prod.asyncgw.teams.microsoft.com/urlp/v1/url/content?url=https%3a%2f%2fwww.smartsheet.com%2fsites%2fdefault%2ffiles%2ffavicons%2ffavicon-32x32.png", "width": "20px", "height": "20px", "separator": false, "type": "Image" } ], "verticalContentAlignment": "center", "separator": false, "type": "Column" }, { "width": "stretch", "items": [ { "color": null, "horizontalAlignment": null, "isSubtle": false, "maxLines": 0, "size": "small", "text": "Smartsheet", "weight": null, "wrap": false, "separator": false, "type": "TextBlock" } ], "separator": false, "type": "Column" } ], "separator": false, "type": "ColumnSet" }, { "columns": [ { "width": "auto", "items": [ { "horizontalAlignment": null, "style": null, "url": "https://us-prod.asyncgw.teams.microsoft.com/urlp/v1/url/content?url=https%3a%2f%2fREDACTED-SUBDOMAIN.ngrok-free.app%2fstatic%2fimages%2fsheet_icon.png", "height": "auto", "separator": false, "type": "Image" } ], "separator": false, "type": "Column" }, { "width": "stretch", "items": [ { "color": null, "horizontalAlignment": null, "isSubtle": false, "maxLines": 0, "size": "large", "text": "REDACTED-SHEET-ID", "weight": "bolder", "wrap": true, "spacing": "None", "separator": false, "type": "TextBlock" }, { "color": null, "horizontalAlignment": null, "isSubtle": false, "maxLines": 0, "size": "small", "text": "Sheet", "weight": "lighter", "wrap": true, "spacing": "None", "separator": false, "type": "TextBlock" } ], "separator": false, "type": "Column" } ], "separator": false, "type": "ColumnSet" }, { "items": [ { "horizontalAlignment": null, "size": "stretch", "style": null, "url": "https://us-prod.asyncgw.teams.microsoft.com/urlp/v1/url/content?url=https%3a%2f%2fREDACTED-SUBDOMAIN.ngrok-free.app%2fstatic%2fimages%2fsheet_thumbnail.png", "height": "auto", "spacing": "Small", "separator": false, "type": "Image" } ], "roundedCorners": true, "id": "thumbnail", "separator": false, "type": "Container" }, { "actions": [ { "url": "https://REDACTED-DOMAIN/sheets/REDACTED-SHEET-ID?view=gantt", "title": "Open", "type": "Action.OpenUrl" } ], "spacing": "ExtraLarge", "separator": true, "type": "ActionSet" } ], "$schema": "https://adaptivecards.io/schemas/adaptive-card.json", "version": "1.5" }, "contentType": "application/vnd.microsoft.card.adaptive", "preview": { "content": { "type": "AdaptiveCard", "body": [ { "columns": [ { "width": "auto", "items": [ { "altText": "Smartsheet logo", "horizontalAlignment": null, "style": null, "url": "https://us-prod.asyncgw.teams.microsoft.com/urlp/v1/url/content?url=https%3a%2f%2fwww.smartsheet.com%2fsites%2fdefault%2ffiles%2ffavicons%2ffavicon-32x32.png", "width": "20px", "height": "20px", "separator": false, "type": "Image" } ], "verticalContentAlignment": "center", "separator": false, "type": "Column" }, { "width": "stretch", "items": [ { "color": null, "horizontalAlignment": null, "isSubtle": false, "maxLines": 0, "size": "small", "text": "Smartsheet", "weight": null, "wrap": false, "separator": false, "type": "TextBlock" } ], "separator": false, "type": "Column" } ], "separator": false, "type": "ColumnSet" }, { "columns": [ { "width": "auto", "items": [ { "horizontalAlignment": null, "style": null, "url": "https://us-prod.asyncgw.teams.microsoft.com/urlp/v1/url/content?url=https%3a%2f%2fREDACTED-SUBDOMAIN.ngrok-free.app%2fstatic%2fimages%2fsheet_icon.png", "height": "auto", "separator": false, "type": "Image" } ], "separator": false, "type": "Column" }, { "width": "stretch", "items": [ { "color": null, "horizontalAlignment": null, "isSubtle": false, "maxLines": 0, "size": "large", "text": "REDACTED-SHEET-ID", "weight": "bolder", "wrap": true, "spacing": "None", "separator": false, "type": "TextBlock" }, { "color": null, "horizontalAlignment": null, "isSubtle": false, "maxLines": 0, "size": "small", "text": "Sheet", "weight": "lighter", "wrap": true, "spacing": "None", "separator": false, "type": "TextBlock" } ], "separator": false, "type": "Column" } ], "separator": false, "type": "ColumnSet" }, { "items": [ { "horizontalAlignment": null, "size": "stretch", "style": null, "url": "https://us-prod.asyncgw.teams.microsoft.com/urlp/v1/url/content?url=https%3a%2f%2fREDACTED-SUBDOMAIN.ngrok-free.app%2fstatic%2fimages%2fsheet_thumbnail.png", "height": "auto", "spacing": "Small", "separator": false, "type": "Image" } ], "roundedCorners": true, "id": "thumbnail", "separator": false, "type": "Container" }, { "actions": [ { "url": "https://REDACTED-DOMAIN/sheets/REDACTED-SHEET-ID?view=gantt", "title": "Open", "type": "Action.OpenUrl" } ], "spacing": "ExtraLarge", "separator": true, "type": "ActionSet" } ], "$schema": "https://adaptivecards.io/schemas/adaptive-card.json", "version": "1.5" }, "contentType": "application/vnd.microsoft.card.adaptive" } } ], "suggestedActions": { "actions": [ { "type": "setCachePolicy", "value": "{\"type\":\"no-cache\"}" } ] }, "type": "result", "attachmentLayout": "list" }, "responseType": "composeExtension" }Solved140Views0likes2Commentsfile upload option disappearing in teams bot
We have Teams bot (we're the developer). When users first start teams, they have the file upload option available under the + button next to the type a message box. However, shortly afterwards, this option disappears. Not all users, just some. Seems to occur for both Mac and Windows users. Our manifest looks like this: { "$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.19/MicrosoftTeams.schema.json", "manifestVersion": "1.19", "version": "1.0.7", "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "developer": { "name": "example", "websiteUrl": "https://www.example.com", "privacyUrl": "https://www.example.com/privacy", "termsOfUseUrl": "https://www.example.com/privacy" }, "icons": { "outline": "example_mono.png", "color": "example_portrait.png" }, "name": { "short": "example", "full": "example, your digital assistant" }, "description": { "short": "example is a digital AI assistant designed to streamline your workflow.", "full": "example is an advanced AI-powered professional assistant developed by example, crafted to enhance productivity and efficiency in the workplace. With a focus on accuracy and a professional demeanor, example assists with information retrieval, scheduling, communication, and various tasks, ensuring that you have more time to focus on what matters most in your business." }, "accentColor": "#fb9745", "bots": [ { "botId": "yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy", "scopes": [ "personal" ], "isNotificationOnly": false, "supportsFiles": true, "commandLists": [ { "scopes": [ "personal", "team" ], "commands": [ { "title": "New", "description": "Starts a new conversation" } ] } ] } ], "permissions": [ "identity", "messageTeamMembers" ], "webApplicationInfo": { "id": "yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy", "resource": "https://RscBasedStoreApp" }, "validDomains": [ "*.ngrok-free.app", "*.ngrok.app", "exampledev.ngrok.app" ] } ``` As far as I can see from the current manifest schema, the bot needs no other scopes. Is this a known bug or are we screwing something up with the config? Any help appreciated!343Views0likes14CommentsLooking for the teams default vivid flag background images
Good Day all. I have a situation where two organizations share a conference room, and each org has it's own teams appliance. For reasons too long to get into, I need to watermark the *standard, default* teams background to visually identify which codec is currently on-screen. Specifically, I need high rez copies of vivid_flag. This is for the splash pages, not in-meeting backgrounds. The only image I can find with google images that does NOT have button overlays on it is only 402x224 pixels. Needless to say, shown on an 86" 4K monitor, that looks like crap. calling on anyone who has these images and/or Microsoft to send them along. yes I know that the next time MS changes the default background this goes away. I'll burn that bridge when I come to it. Thank you all in advance, Auslambert This is a demo of what I want to do, using that 400 pixel thumbnail:1.1KViews0likes1CommentScan a document or save a picture directly to a Teams folder
Is there a way to scan a document such as a receipt directly to a Teams folder from a phone or tablet? I tried using Office Lens, but my options are only OneDrive and OneNote. I am trying to make it easy for my employees to scan receipts into their respective Team folders, but can't seem to locate an easy one-click method. I get that I can scan to OneDrive, then upload, butSolved31KViews0likes7CommentsIs it possible to open and edit files in Teams that are not in a Teams cloud storage provider.
Hi, My company has a cloud storage system that our customers would lime to be able to use with Teams. We are working on an app to do this but we need some way of being able to open files that are outside of the storage provided by the cloud storage providers supported by Microsoft. Is this possible from with in Teams and if so how can it best be done.Solved1.2KViews0likes5CommentsCustom App - download of multiple files not working in Teams 2.0 desktop app
Hello, we have a working custom app which users can use to navigate files in a storage solution. It worked perfectly in the old Teams, however since the "New Teams" was published we got a problem regarding downloading files. Downloading a single file is working as intended, however downloading multiple files with one single click runs into nothing. The download is not started and our client-code also doesn't run into any error - it seems like it works as intended even while debugging and stepping over each line of code. However, the download doesn't get started. It is working in the web version of Teams 2.0 if the user accepts the pop-up which asks if multiple downloads should be allowed (this is a one-time thing and is prompted by the browser). Therefore, our guess is that the Teams 2.0 desktop client would need to prompt for this security setting too, but doesn't and therefore "blocks" all downloads. Our download is realized through creating an iframe, setting its source to the download url and appending it to the document body. We also tried to use this npm package, but it didn't help with our problem: https://www.npmjs.com/package/file-saver Hope you can help us. Best Regards Patrick2.7KViews1like10Comments