add link on portal page in Dynamics 365 to download a file from OneDrive

%3CLINGO-SUB%20id%3D%22lingo-sub-2469835%22%20slang%3D%22en-US%22%3Eadd%20link%20on%20portal%20page%20in%20Dynamics%20365%20to%20download%20a%20file%20from%20OneDrive%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2469835%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20add%20a%20link%20on%20the%20Portal%20page%20to%20download%20a%20file%20from%20OneDrive%2C%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20default%20report%20template%20in%20OneDrive.%20When%20a%20user%20clicks%20on%20a%20button%20or%20link%20on%20the%20Portal%20page%2C%20it%20runs%20a%20flow%20to%20populate%20data%20in%26nbsp%3Bthe%20report%20template%2C%20save%20it%20as%20currentDate_siteLocation.xlsx%20and%20download%20the%20report%20for%20the%20portal%20user.%26nbsp%3B%3C%2FP%3E%3CP%3EI%20tried%20to%20open%20the%20file%20from%20OneDrive.%20A%26nbsp%3Blink%20for%20the%20file%26nbsp%3Bincludes%20sourcedoc%20parameter%20with%20a%20different%20value%20each%20time%20when%20a%20new%20file%20is%20created.%20therefore%2C%20I%20won't%20be%20able%20to%20hard%20code%20the%20URL%26nbsp%3B%20as%20%22URL%20for%20OneDrive%20%2B%20%22filename%22%3C%2FP%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22namasivayams_1-1624374168736.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F290509iB02D9C717186A7B4%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22namasivayams_1-1624374168736.png%22%20alt%3D%22namasivayams_1-1624374168736.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3EAny%20suggestion%20on%20how%20this%20can%20be%20done%3F%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EThank%20you%2C%3C%2FP%3E%3CP%20class%3D%22%22%3ESiva%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2469835%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOneDrive%20for%20Business%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Visitor

Hi,

I am trying to add a link on the Portal page to download a file from OneDrive, 

I have a default report template in OneDrive. When a user clicks on a button or link on the Portal page, it runs a flow to populate data in the report template, save it as currentDate_siteLocation.xlsx and download the report for the portal user. 

I tried to open the file from OneDrive. A link for the file includes sourcedoc parameter with a different value each time when a new file is created. therefore, I won't be able to hard code the URL  as "URL for OneDrive + "filename"

 

namasivayams_1-1624374168736.png

Any suggestion on how this can be done?

Thank you,

Siva

0 Replies