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 :
Small and medium business | Business Central, N...
Suggested Answer

Display XML File in the web browser

(0) ShareShare
ReportReport
Posted on by 22

Hi All,

On a list page, I have an action which downloads the corresponding xml file. Now, the requirement is that I need to create one more action which will display the contents of the xml file in the web browser itself..How this can be achieved, please suggest !

Thanks !!

I have the same question (0)
  • Suggested answer
    JAngle Profile Picture
    133 on at

    Maybe this is an idea if I’ve understood the request and the suggested blog correctly: www.kauffmann.nl/.../

  • Praveen A Profile Picture
    22 on at

    No, this is not relevant to my concern..

  • Suggested answer
    Guillem Padilla Profile Picture
    427 on at

    Hi Praveen,

    Are you using BC Cloud, or OnPrem?

    You could try using HyperLink Method: docs.microsoft.com/.../system-hyperlink-method

  • Praveen A Profile Picture
    22 on at

    On Prem

  • Praveen A Profile Picture
    22 on at

    On Prem

  • Suggested answer
    Guillem Padilla Profile Picture
    427 on at

    Then the easiest way is using the HyperLink Method and pass the file path to it (in case you save the file on the computer).

    Example:

    FilePath := 'Path where the file is saved';
    
    HyperLink(FilePath); //It will open a new window showing the file content
    
    Url := 'Online path from where you download the file';
    HyperLink(Url); //It also works with URLs.

    You can check the ShowMap standard on CustomerCard.

    It opens a new window to show the customer address on bing maps.

    .

  • Praveen A Profile Picture
    22 on at

    Type of FilePath variable ??

  • Suggested answer
    Guillem Padilla Profile Picture
    427 on at

    Sorry, it needs to be a String, so you can declare a Text variable.

    Here are the docs: docs.microsoft.com/.../system-hyperlink-method

  • Praveen A Profile Picture
    22 on at

    Not working...Can we connect over some other platform so that we ll have a screen share

  • Suggested answer
    Guillem Padilla Profile Picture
    427 on at

    If you read the docs you will see that the file needs to be on a network file share.

    When using the file:// protocol to open a file, the file should be stored on a network file share, not locally; otherwise the file will not open. Browsers block hyperlinks to files from a web page for security reasons and the hyperlink must be manually copied and pasted into a manually opened tab page.

    Example filepath: file://d$/myfiles/myfile.txt

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,143

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,694 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans