typescript
7 TopicsCustom 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, ... }354Views0likes3CommentsHow to capture replies to a bot's message in a Microsoft Teams Channel without mentioning the bot?
I have developed a message extension bot app for Microsoft Teams and I want to capture replies to a message posted by the bot in a Teams channel without requiring users to mention the bot directly. I am using Node.js and TypeScript for my bot. The bot is registered in the Azure Bot Service. I want to capture replies to this message without users needing to mention the bot. How can I achieve this? Any guidance or examples would be greatly appreciated!1.1KViews0likes5CommentsError 554 5.2.0 while sending email
Hi. I'm working on a personal project with Nodejs and was testing a email template for password recovery. I created a new hotmail account and starting testing sending emails from my test account to my personal email to check the email layout. But after sometime, I started to get this error: '554 5.2.0 STOREDRV.Submission.Exception:OutboundSpamException; Failed to process message due to a permanent exception with message [BeginDiagnosticData]WASCL UserAction verdict is not None. Actual verdict is Suspend, ShowTierUpgrade. OutboundSpamException: WASCL UserAction verdict is not None. Actual verdict is Suspend, ShowTierUpgrade.[EndDiagnosticData] [Hostname=RO1P152MB2796.LAMP152.PROD.OUTLOOK.COM]' I already verified my account and still can't send any email. I did some research and found that it has to do with spam limitations, but couldn't figure out how to remove the block. Can any body help me?7.6KViews1like1CommentRefused to execute script from 'myfiles.bundle.js.gz' in SharePoint Online Master page
I have created a bundle file with 'compression-webpack-plugin'. But when I am trying to use in SharePoint online master page, it is throwing an error : 'Refused to execute script from 'myfiles.bundle.js.gz' because its MIME type ('application/x-gzip') is not executable, and strict MIME type checking is enabled.' How can I use .gz file in SharePoint Online Master page? Thanks, Gaurav Goyal2.5KViews0likes0CommentsHow can I get the user token from the context in a Sharepoint WebPart?
I have been working in a Sharepoint Webpart with TypeScript. I would like to obtain the user token to pass it as a parameter in the headers. How can I do this?. So far, I have something like this: public render(): void { ... let request = this.getRequest(param1); ... } protected getRequest(param1: string): Promise<any> { let loginURL = this.properties.url+"/admin/api/v2/list"; let body = '{"param":"'+param1+'"}'; let requestHeaders: Headers = new Headers(); requestHeaders.append("Accept-Tos", "true"); requestHeaders.append("Content-Type", "application/json"); requestHeaders.append("respondWithObject", "true"); **requestHeaders.append('Authorization', 'Bearer <TOKEN>'); ????** let httpClientOptions: IHttpClientOptions = { body: body, headers: requestHeaders }; return this.context.httpClient.post( loginURL, HttpClient.configurations.v1, httpClientOptions) .then((response: HttpClientResponse): any => { return response.json(); }); } Regards4.4KViews0likes1CommentSet width for `PivotItem` in Office UI Fabric
I am using Pivot and PivotItem from Office UI Fabric to display my content in tabs. Currently when the tab renders, all the tabs are left aligned. I need to display the tabs with equal width so that they occupy the 100% width of the page. Below is the code for Pivot. <Pivot linkFormat={PivotLinkFormat.tabs} linkSize={PivotLinkSize.large} styles={pivotStyles}> <PivotItem headerText="Foo"> <Label>Pivot #1</Label> </PivotItem> <PivotItem headerText="Bar"> <Label>Pivot #2</Label> </PivotItem> <PivotItem headerText="Bas"> <Label>Pivot #3</Label> </PivotItem> <PivotItem headerText="Biz"> <Label>Pivot #4</Label> </PivotItem> </Pivot> Below is the code that I could figure out to add styles to Pivot. But we do not have styles attribute for PivotItem. const pivotStyles:IPivotStyles = { link: {}, linkContent: {}, linkIsSelected: {}, text: {}, icon: {}, count: {}, root: { //background: DefaultPalette.greenDark } }; How can I apply style to PivotItem so that I can add width to it?2.2KViews0likes0CommentsI have upgraded from yeoman 1.3.4 to 1.4.0 and I cannot import mystrings.d.ts
I have a file mystrings.d.ts which contains :- declare interface IReactSearchBoxStrings { PropertyPaneSearchOptions: string; BasicGroupName: string; DefaultSearchResultsPageUrlFieldLabel: string; EnableCustomSearchPlaceholderLabel: string; SearchLabel: string; CustomSearchPlaceholderModeOnAlert: string; } declare module 'reactSearchBoxStrings' { const strings: IReactSearchBoxStrings; export = strings; } I want to import the contents thus into ReactSearchBoxWebPart.ts:- import * as strings from 'reactSearchBoxStrings'; It complies but when I want to ship it (gulp bundle --ship) I get this error :- Module not found: Error: Can't resolve 'reactSearchBoxStrings' in 'C:/Users/xxxx/Documents/SPFx/Projects/1-4-0/react-search-box-webpart/lib/webparts/reactSearchBox' resolve 'reactSearchBoxStrings' in 'C:/Users/xxxx/Documents/SPFx/Projects/1-4-0/react-search-box-webpart/lib/webparts/reactSearchBox' This worked Ok when the project was built with yeoman 1.3.4, but does not work when the project is built with yeoman 1.4.0.Solved1.2KViews0likes1Comment