Microsoft Tech Community Live:  Microsoft Teams Edition
November 09, 2021, 08:00 AM - 12:00 PM (PST)

Is there any way to show iframe content in ms teams chat?

%3CLINGO-SUB%20id%3D%22lingo-sub-1939389%22%20slang%3D%22en-US%22%3EIs%20there%20any%20way%20to%20show%20iframe%20content%20in%20ms%20teams%20chat%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1939389%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20been%20trying%20to%20send%20iframe%20as%20a%20response%20from%20bot%20framework%2C%20my%20usecase%20is%20to%20display%20dynamic%20charts%20which%20are%20generated%20from%20portal.%3CBR%20%2F%3E%3CBR%20%2F%3EI'm%20able%20to%20send%20iframe%20but%20the%20bot%20message%20body%20is%20empty%20instead%20of%20iframe%20content.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1939389%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EBots%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EUser%20Interface%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2039500%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20any%20way%20to%20show%20iframe%20content%20in%20ms%20teams%20chat%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2039500%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F885250%22%20target%3D%22_blank%22%3E%40kiranbudati%3C%2FA%3E%2C%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%3EAlthough%20it's%20not%20100%25%20standard%20use%20of%20them%2C%20you%20can%20use%20a%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Ftask-modules-and-cards%2Fwhat-are-task-modules%22%20rel%3D%22noreferrer%20noopener%22%20target%3D%22_blank%22%3ETask%20Module%3C%2FA%3E%3CSPAN%3E%26nbsp%3Bfor%20this.%20There%20are%20various%20ways%20to%20launch%20them%2C%20and%20one%20way%20is%20via%20a%20button%20in%20an%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Ftask-modules-and-cards%2Fwhat-are-cards%22%20rel%3D%22noreferrer%20noopener%22%20target%3D%22_blank%22%3EAdaptive%20Card%3C%2FA%3E%3CSPAN%3E.%20It's%20a%20bit%20of%20work%20learning%20each%20of%20these%20topics%2C%20if%20you%20haven't%20used%20them%20before%2C%20but%20it's%20certainly%20possible%20to%20use%20the%20to%20do%20what%20you're%20trying%20to%20achieve.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

I have been trying to send iframe as a response from bot framework, my usecase is to display dynamic charts which are generated from portal.

I'm able to send iframe but the bot message body is empty instead of iframe content.

2 Replies

Hi @kiranbudati,

Although it's not 100% standard use of them, you can use a Task Module for this. There are various ways to launch them, and one way is via a button in an Adaptive Card. It's a bit of work learning each of these topics, if you haven't used them before, but it's certainly possible to use the to do what you're trying to achieve.

I have a same scenario to implement, can you provide some sample links, how can I achieve this, I also want to show charts in chatbot using I-frames, is there any way to do it, using button also how can we show the i-frame in chat window itself@Rama-MSFT