I am trying to get a scenario where a user can click on an Action in a card from a Teams conversation that opens an Add-on iframe context that can have access to a reference Id of sort. Using Action.OpenUrl is one way except that the resulting context is a Tab in a browser. I need an iframe inside Teams (Web or Desktop App).
Using Action.Submit as abn action opens the iframe. But there is no contextual data available that can give me a reference Id.
I did try with various fields including having a TextBlock but that does not work. Well the TextBlock approach could work but the issue is to find the message Id and call the Graph API. And the textBlock is visible to the user (isVisible is ignored by Teams).