Please check my formula for viewing pdf documents from pdf viewer in power apps according to the solution provided on the video https://www.youtube.com/watch?v=vqK29FWbLxU&t=1143s
All the Office files and image files are working fine except the PDF files
Forumula :
If(
Last(
Split(
Gallery3.Selected.'File name with extension',
"."
)
).Result = "pdf",
"appres://datasources/Testing%20Documetns/table/51f93222-62e2-4a05-a3b0-859e29b94944/rows/0/reference/https:%2F%2Fmsmanaged-na. shared-sharepointonl-ea3cc5bb-5184-49af-8ab5-11fd5538f7b7%2F %25253a%25252f%25252fteamashland.sharepoint.com%25252fsites%25252fntx%25252fcit%25252ftest%2FGetFileContentByPath%3Fpath=%252f"
& EncodeUrl(Gallery3.Selected.'Folder path' & Gallery3.Selected.'File name with extension'),
Substitute(
Gallery3.Selected.Thumbnail.Large,
"/thumbnail",
"/pdf"
)
)
The author gave me a suggestion like below but it seems not working for me so can anyone help me on this to finish my project ? Any ideas ?
"In the document URL the 32 digit id/number between 'azure-apim.net%2Fapim%2Fsharepointonline%2F' and 'datasets%2Fhttps' changes by user. So I kept a single dummy file at root level and saved its url in Pic column. In PA I am looking up that file using its ID and substituting the 32 digit id/number out and concatenating it within my pdf document url. It seems to work."