Open file from SPFx Teams tab in New Teams

Copper Contributor

Is there a way to open a file from an SPFx Teams Tab app in New Teams? My implementation in Classic Teams was working, which was taken from here: How to open a file in the Custom spfx teams tab in MS teams - Microsoft Community Hub


private string GetFileViewerURL(string actionData_URL, string prefix)
    return $"{prefix}/viewer/teams/" + actionData_URL?.Replace("/", "~2F");


2 Replies
Hello @pheidler - Thanks for raising your query.
We will look into it and let you know the updates.
Apologies for the delay, could you please raise this issue on Respective team will look into this.