Notifications
Announcements
No record found.
Hi,
I'm using D365FO onpremise and I'm looking for a way to create a clicable link to a file stored on server.
As for now I'm storing PDF's on our server but I want a direct link to it so I could open it in a browser or file explorer.
I can save the filePath into a table as a string but how to could I create a link from it so people in our domain can use it?
With this one I believe you can use.
Browser br = new Browser();
br.navigate("https://www.google.co.in", true);
This is to navigate to the URL. In case you want to have it on form, you might use MenuItemButton but set the property Style = Link.
Thanks,
I already found this but it works fine with https but not file ext for me.
br.navigate("file://myserver/documents/invoices/2021/SalesInvoice_F200010.pdf", true);
But trying to open it in chrome I've got:
'This window has failed to open. Check your popup blocker settings and add an exception for Dynamics 365 Finance and Operations.'
I already added [*.]dynamics.com to popups in chrome.
On IE it dont even open.
Any help?
Anything that would help me to open a file location in browser or use the file location with File class to upload it into stream and give it to the user?
Browser class sin't working for me as it always add the http beginning.
If you want to open a local file, I think better you can upload the file first then download it using the below link, you can also get the stream after upload also.
d365-solutions.blogspot.com/.../uploading-file-in-d365.html
The question is if I can upload it without the user. Having the local file path or it will just do the same thing and add the http and fail to open the path.
Users in domain can open the shared folder manually and serach the PDF's. The recuirement is that I can find it from AX by code. The way that it pops up on a new tab or it give a download link.
I did even think to force the dialog with the path param and run it in background so it dont show to the user.
You can add the files to docuRef and use that files(Easier to manage)
usamaganatra.blogspot.com/.../open-attached-file-from-docuref-in.html
Some files are already in docuRef.
Actually what im trying is to skip is the print of documents.
All the PDF's I need are created or attached in AX.
The PDF's are created everyday in batch and stored on server.
But since they all are stored on a domain server I though I could use them to make it more responsible and accesible from one form where they would be connected to each other like invoice > packingslips > other transport documents
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 664 Most Valuable Professional
André Arnaud de Cal... 522 Super User 2025 Season 2
Sohaib Cheema 303 User Group Leader