SOLVED

Hero card does not load in Desktop MS Teams App, but It works fine in Web MS Teams version

%3CLINGO-SUB%20id%3D%22lingo-sub-1241235%22%20slang%3D%22en-US%22%3EHero%20card%20does%20not%20load%20in%20Desktop%20MS%20Teams%20App%2C%20but%20It%20works%20fine%20in%20Web%20MS%20Teams%20version%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1241235%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20populated%20one%20Hero%20card%20using%20Event%20called%20%3CEM%3EOnTeamsTaskModuleFetchAsync.%26nbsp%3B%3C%2FEM%3EThe%20Popup%20is%20not%20getting%20load%20in%20MS%20Teams%20Windows%20environment.%20but%20its%20getting%20load%20in%20Web%20version.%20I'vetried%20to%20identify%20the%20root%20cause%20of%20the%20issue%20in%20%3CEM%3EDeveloper%20Previe%3C%2FEM%3Ew%2C%20and%20it%20seems%20that%20there%20is%20an%20error%20in%20Console.%20Attaching%20screen%20shot%20for%20the%20same%3CEM%3E.%3C%2FEM%3E%3C%2FP%3E%3CP%3EI%20see%20the%20issue%20in%20MS%20teams%20pages%20is%26nbsp%3B%20%22%3CEM%3E%3CA%20href%3D%22https%3A%2F%2Fteams.microsoft.com%2Fiframe-container.html%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fteams.microsoft.com%2Fiframe-container.html%3C%2FA%3E%3C%2FEM%3E%22.%3C%2FP%3E%3CP%3EIs%20this%20a%20bug%20in%20MS%20Teams%20or%20Do%20I%20need%20to%20check%20this%20at%20Dev%20level%3F%20Just%20to%20update%20you%20it%20was%20working%20fine%203%20days%20back.%3C%2FP%3E%3CP%3ECode%20I%20have%20used%20class%20extend%20by%20%22%3CEM%3ETeamsActivityHandler%3C%2FEM%3E%22%3C%2FP%3E%3CP%3EAttaching%20few%20screens%20for%20refference.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-csharp%22%3E%3CCODE%3E%20return%20new%20HeroCard()%0A%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Title%20%3D%20%22Welcome%20to%20Bot%20company%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Subtitle%20%3D%20%22Hi%2C%20I'm%20Bot!%20To%20begin%20with.......%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Buttons%20%3D%20new%20List%3CCARDACTION%3E()%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20new%20TaskModuleAction(%22Configure%22%2C%20new%20%7B%20data%20%3D%20%22welcomecard%22%7D)%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%2C%0A%0A%20%20%20%7D.ToAttachment()%3B%3C%2FCARDACTION%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%221.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F178389i296597623CD1F6F2%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%221.png%22%20alt%3D%22Dev%20Preview%20Detailed%20error%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EDev%20Preview%20Detailed%20error%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%222.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F178387iED9D2888A4CA8AE6%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%222.png%22%20alt%3D%22Fails%20in%20MS%20Teams%20Desktop%20environment%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFails%20in%20MS%20Teams%20Desktop%20environment%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%223.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F178386i2C7CF7C79340BB4E%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%223.png%22%20alt%3D%22Error%20in%20Dev%20Preview%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EError%20in%20Dev%20Preview%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%224.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F178388iBBE98FF9865F7B3E%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%224.png%22%20alt%3D%22Working%20fine%20in%20Web%20version%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EWorking%20fine%20in%20Web%20version%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1241235%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1245830%22%20slang%3D%22en-US%22%3ERe%3A%20Hero%20card%20does%20not%20load%20in%20Desktop%20MS%20Teams%20App%2C%20but%20It%20works%20fine%20in%20Web%20MS%20Teams%20version%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1245830%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F561606%22%20target%3D%22_blank%22%3E%40NadirRiyani%3C%2FA%3E%26nbsp%3B-%26nbsp%3BTaskModule%20currently%20supports%20only%20Adaptive%20card%20and%20Html%20pages%20as%20documented%20%3CA%20tabindex%3D%22-1%22%20title%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Ftask-modules-and-cards%2Fwhat-are-task-modules%22%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Ftask-modules-and-cards%2Fwhat-are-task-modules%22%20target%3D%22_blank%22%20rel%3D%22noreferrer%20noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%20It%20is%20not%20possible%20to%20open%20a%20Hero%20card%20inside%20a%20task%20module.%20However%2C%20you%20can%20invoke%20a%20TaskModule%20from%20a%20Hero%20card.%20The%20screenshot%20you%20shared%20does%20not%20look%20like%20a%20herocard.%20Could%20you%20please%20share%20more%20details%20on%20what%20you%20are%20trying.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1246583%22%20slang%3D%22en-US%22%3ERe%3A%20Hero%20card%20does%20not%20load%20in%20Desktop%20MS%20Teams%20App%2C%20but%20It%20works%20fine%20in%20Web%20MS%20Teams%20version%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1246583%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F590590%22%20target%3D%22_blank%22%3E%40Nikitha-MSFT%3C%2FA%3E%26nbsp%3B%3A%20Thanks%20for%20the%20quick%20response.%20The%20process%20as%20below.%3C%2FP%3E%3CP%3E1.%20Display%20Hero%20card%20with%20one%20button%3C%2FP%3E%3CP%3E2.%20Open%20Webpage%20on%20Button%20click.%3C%2FP%3E%3CP%3ENow%20the%20issue%20is%2C%26nbsp%3B%20I%20am%20able%20to%20see%20Task%20Module%20in%20MS%20Team%20Web%20but%20on%20Windows%20MS%20Team%20setup%20it%20works%20exceptionally.%20(Some%20time%20it%20works%2C%20sometimes%20it%20does%20not).%20Is%20it%20known%20or%20expected%3F%26nbsp%3B%3C%2FP%3E%3CP%3EOR%20Correct%20me%20if%20any%20correction%20required%20in%20code%20here%3C%2FP%3E%3CP%3Eissue%20image%20added%20on%20first%20request.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3Eprotected%20override%20async%20Task%3CTASKMODULERESPONSE%3E%20OnTeamsTaskModuleFetchAsync(ITurnContext%3CIINVOKEACTIVITY%3E%20turnContext%2C%20TaskModuleRequest%20taskModuleRequest%2C%20CancellationToken%20cancellationToken)%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20return%20new%20TaskModuleResponse%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7B%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Task%20%3D%20new%20TaskModuleContinueResponse%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Value%20%3D%20new%20TaskModuleTaskInfo()%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Url%20%3D%20AppSettings.WebLink%20%2B%20%22%2Fconfigurepage%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Height%20%3D%20410%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Title%20%3D%20%22Configuration%20Settings%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%3B%0A%20%20%20%20%20%20%20%20%20%20%7D%3C%2FIINVOKEACTIVITY%3E%3C%2FTASKMODULERESPONSE%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1248639%22%20slang%3D%22en-US%22%3ERe%3A%20Hero%20card%20does%20not%20load%20in%20Desktop%20MS%20Teams%20App%2C%20but%20It%20works%20fine%20in%20Web%20MS%20Teams%20version%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1248639%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F561606%22%20target%3D%22_blank%22%3E%40NadirRiyani%3C%2FA%3E%26nbsp%3B-%20We%20could%20not%20repro%20the%20issue%20on%20our%20side.%20Could%20you%20please%20share%20a%20screenshot%20of%20the%20page%20you%20are%20trying%20to%20load%20in%20web.%20Does%20this%20require%20any%20user%20Authentication%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1255305%22%20slang%3D%22en-US%22%3ERe%3A%20Hero%20card%20does%20not%20load%20in%20Desktop%20MS%20Teams%20App%2C%20but%20It%20works%20fine%20in%20Web%20MS%20Teams%20version%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1255305%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F590590%22%20target%3D%22_blank%22%3E%40Nikitha-MSFT%3C%2FA%3E%26nbsp%3B%20Image%20I%20have%20already%20attached%20in%20the%20earlier%20requests.%20Let%20me%20share%20the%20steps%2C%20how%20my%20application%20works.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3COL%3E%3CLI%3ERun%20Bot%20command.%20It%20will%20return%20one%20Hero%20card%20with%20one%20CardAction%20Button%20(i.e.%20Configure%20Button%20caption).%3C%2FLI%3E%3CLI%3EOn%20Button%20Click%20-%26gt%3B%20It%20will%20come%20to%26nbsp%3B%20Event%20-%26gt%3B%20%3CEM%3EOnTeamsTaskModuleFetchAsync%3C%2FEM%3E%3C%2FLI%3E%3CLI%3ECode%20in%20event%26nbsp%3B%3CEM%3EOnTeamsTaskModuleFetchAsync%26nbsp%3B%3C%2FEM%3Eas%20below.%3C%2FLI%3E%3C%2FOL%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%20return%20new%20TaskModuleResponse%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Task%20%3D%20new%20TaskModuleContinueResponse%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Value%20%3D%20new%20TaskModuleTaskInfo()%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Url%20%3D%20%22www.website.com%2Fconfigurepage%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Height%20%3D%20410%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Title%20%3D%20%22Configuration%20the%20App%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E4.%20The%20above%20code%20will%20open%20one%20pop%20up%20as%20Task%20Module.%3C%2FP%3E%3CP%3E5.%20This%20webpage%20contains%20three%20text%20boxes%20and%20one%20button.%3C%2FP%3E%3CP%3E6.%20The%20user%20input%20would%20be%20saved%20in%20the%20database%20on%20button%20click%20event%20(resides%20under%20webpage).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20the%20issue%20in%20Point%20no%204%20(Pop%20up%20containing%20webpage)%3C%2FP%3E%3CP%3E%3CU%3EMS%20Team%20Windows%20App%3C%2FU%3E%20-%20Pop%20up%20open%20with%20empty%20page.%20This%20behavior%20is%20not%20consistent.%20Some%20time%20it%20works%20fine%20and%20sometimes%20it%20does%20not%20work.%20I%20have%20attached%20a%20screenshot%20in%20an%20earlier%20communication.%20And%20I%20have%20shared%20image%20error%20in%20the%20Dev%20Preview%20environment.%3C%2FP%3E%3CP%3E%3CU%3EMS%20Teams%20Web%20Version%20(chrome)%20-%3C%2FU%3E%20it%20works%20fine%20every%20time%20in%20MS%20Teams%20Web%20version.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThat%20might%20be%20possible%20that%20you%20are%20not%20able%20to%20reproduce%20this%20issue%20because%20of%20it%20works%20fine%20in%20my%20environment%20too(since%20the%20last%20three%20days).%3C%2FP%3E%3CP%3EI%20would%20request%20you%20to%20keep%20this%20case%20open%20for%20further%20detailed%20investigation.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1271102%22%20slang%3D%22en-US%22%3ERe%3A%20Hero%20card%20does%20not%20load%20in%20Desktop%20MS%20Teams%20App%2C%20but%20It%20works%20fine%20in%20Web%20MS%20Teams%20version%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1271102%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F561606%22%20target%3D%22_blank%22%3E%40NadirRiyani%3C%2FA%3E%26nbsp%3B-%20%3CSPAN%3EWe%20could%20reproduce%20the%20issue%20on%20our%20side.%20Raised%20a%20bug%20for%20this.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1283552%22%20slang%3D%22en-US%22%3ERe%3A%20Hero%20card%20does%20not%20load%20in%20Desktop%20MS%20Teams%20App%2C%20but%20It%20works%20fine%20in%20Web%20MS%20Teams%20version%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1283552%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F590590%22%20target%3D%22_blank%22%3E%40Nikitha-MSFT%3C%2FA%3E%26nbsp%3B%20thank%20you%20for%20your%20response.%20Request%20you%20to%20please%20share%20an%20update%20as%20soon%20as%20this%20bug%20gets%20fixed.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Contributor

 

Hi,

 

I have populated one Hero card using Event called OnTeamsTaskModuleFetchAsync. The Popup is not getting load in MS Teams Windows environment. but its getting load in Web version. I'vetried to identify the root cause of the issue in Developer Preview, and it seems that there is an error in Console. Attaching screen shot for the same.

I see the issue in MS teams pages is  "https://teams.microsoft.com/iframe-container.html".

Is this a bug in MS Teams or Do I need to check this at Dev level? Just to update you it was working fine 3 days back.

Code I have used class extend by "TeamsActivityHandler"

Attaching few screens for refference.

 

 

 

 return new HeroCard()
 {
                    Title = "Welcome to Bot company",
                    Subtitle = "Hi, I'm Bot! To begin with.......",
                    Buttons = new List<CardAction>()
                    {
                        new TaskModuleAction("Configure", new { data = "welcomecard"})
                    },

   }.ToAttachment();

 

 

 

Dev Preview Detailed errorDev Preview Detailed errorFails in MS Teams Desktop environmentFails in MS Teams Desktop environmentError in Dev PreviewError in Dev PreviewWorking fine in Web versionWorking fine in Web version

 

6 Replies
Highlighted

@NadirRiyani - TaskModule currently supports only Adaptive card and Html pages as documented here. It is not possible to open a Hero card inside a task module. However, you can invoke a TaskModule from a Hero card. The screenshot you shared does not look like a herocard. Could you please share more details on what you are trying.

Highlighted

@Nikitha-MSFT : Thanks for the quick response. The process as below.

1. Display Hero card with one button

2. Open Webpage on Button click.

Now the issue is,  I am able to see Task Module in MS Team Web but on Windows MS Team setup it works exceptionally. (Some time it works, sometimes it does not). Is it known or expected? 

OR Correct me if any correction required in code here

issue image added on first request.

 

 

protected override async Task<TaskModuleResponse> OnTeamsTaskModuleFetchAsync(ITurnContext<IInvokeActivity> turnContext, TaskModuleRequest taskModuleRequest, CancellationToken cancellationToken)
        {
            return new TaskModuleResponse
                {   
                    Task = new TaskModuleContinueResponse
                    {
                        Value = new TaskModuleTaskInfo()
                        {
                            Url = AppSettings.WebLink + "/configurepage",
                            Height = 410,
                            
                            Title = "Configuration Settings",
                        },
                    },
                };
          }

 

 

Highlighted

@NadirRiyani - We could not repro the issue on our side. Could you please share a screenshot of the page you are trying to load in web. Does this require any user Authentication?

Highlighted

@Nikitha-MSFT  Image I have already attached in the earlier requests. Let me share the steps, how my application works.

 

  1. Run Bot command. It will return one Hero card with one CardAction Button (i.e. Configure Button caption).
  2. On Button Click -> It will come to  Event -> OnTeamsTaskModuleFetchAsync
  3. Code in event OnTeamsTaskModuleFetchAsync as below.
 return new TaskModuleResponse
                {
                 Task = new TaskModuleContinueResponse
                    {
                        Value = new TaskModuleTaskInfo()
                        {
                            Url = "www.website.com/configurepage",
                            Height = 410,
                            Title = "Configuration the App",
                        },
                    },
                };

4. The above code will open one pop up as Task Module.

5. This webpage contains three text boxes and one button.

6. The user input would be saved in the database on button click event (resides under webpage).

 

Here the issue in Point no 4 (Pop up containing webpage)

MS Team Windows App - Pop up open with empty page. This behavior is not consistent. Some time it works fine and sometimes it does not work. I have attached a screenshot in an earlier communication. And I have shared image error in the Dev Preview environment.

MS Teams Web Version (chrome) - it works fine every time in MS Teams Web version.

 

That might be possible that you are not able to reproduce this issue because of it works fine in my environment too(since the last three days).

I would request you to keep this case open for further detailed investigation.

 

 

Highlighted
Best Response confirmed by NadirRiyani (Contributor)
Solution

@NadirRiyani - We could reproduce the issue on our side. Raised a bug for this.

Highlighted

@Nikitha-MSFT  thank you for your response. Request you to please share an update as soon as this bug gets fixed.