web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Create a clickable link on form

(0) ShareShare
ReportReport
Posted on by 172

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?

I have the same question (0)
  • Suggested answer
    Alex VN Profile Picture
    1,994 on at

    Hi,

    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.

  • RadekM Profile Picture
    172 on at

    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.

  • RadekM Profile Picture
    172 on at

    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.

  • Alex VN Profile Picture
    1,994 on at

    Hi,

    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

  • RadekM Profile Picture
    172 on at

    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.

  • Suggested answer
    ergun sahin Profile Picture
    8,826 Moderator on at

    You can add the files to docuRef and use that files(Easier to manage)

    usamaganatra.blogspot.com/.../open-attached-file-from-docuref-in.html

  • RadekM Profile Picture
    172 on at

    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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 522 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans