Forum Discussion

pheidler's avatar
pheidler
Copper Contributor
Dec 28, 2023

Open file from SPFx Teams tab in New Teams

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 $"https://teams.microsoft.com/_#/{prefix}/viewer/teams/" + actionData_URL?.Replace("/", "~2F");
}

 

2 Replies

    • Meghana-MSFT's avatar
      Meghana-MSFT
      Former Employee
      Apologies for the delay, could you please raise this issue on https://github.com/SharePoint/sp-dev-docs/issues. Respective team will look into this.

Resources