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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)
Answered

How to make file path or UNC Path clickable & display in field - CRM 2016 or Dynamics 365

(0) ShareShare
ReportReport
Posted on by

Hello,

My problem is raises when I want to take input of text field which are like -> FILE Path or UNC path

AND display clickable path  (local files in organization where employees can open file location when they click the link of the path.)

Current CRM : CRM Dynamics 365

its works when for URL specially for HTTPS but doesn't works for file path or UNC path.

I don't know why ?

Can anyone help me to solve this issue ?

Thanks

*This post is locked for comments

I have the same question (0)
  • Nadeeja Bomiriya Profile Picture
    6,804 on at
    RE: How to make file path or UNC Path clickable & display in field - CRM 2016 or Dynamics 365

    Hi Deepthi,

    I believe this is not possible OOTB.  Please check out below which includes some suggestions.

    community.dynamics.com/.../121998

  • Community Member Profile Picture
    on at
    RE: How to make file path or UNC Path clickable & display in field - CRM 2016 or Dynamics 365

    Thank you for replying me back.I had observed previous posts and discussion. I had tried almost all of methods which might work in CRM 2016. What is the reason of not working in new version when compared to CRM 2011, we have possible of working.

    Let me know if there is any method to make this case possible  - > using web resource when form is loaded and use java script or

    should i  create a plugin ??  

  • Suggested answer
    Nadeeja Bomiriya Profile Picture
    6,804 on at
    RE: How to make file path or UNC Path clickable & display in field - CRM 2016 or Dynamics 365

    Hi Deepthi,

    You should be able to save the full path in a text field (not as a url) and create an html webresource and read the URL from the text field and create an html link.

  • Community Member Profile Picture
    on at
    RE: How to make file path or UNC Path clickable & display in field - CRM 2016 or Dynamics 365

    Hi Nadeeja,

    But its doesn't open window of local files and Html link leads to blank page as its used for HTTP protocol and making local file as https doesn't make sense . That what I'm thinking?

    let me know if I'm missing anything?

  • Suggested answer
    Nadeeja Bomiriya Profile Picture
    6,804 on at
    RE: How to make file path or UNC Path clickable & display in field - CRM 2016 or Dynamics 365

    Hi Deepthi,

    I just tested this and yes, you are correct.  There are some options.

    In IE, open Internet Options > Security > Local Intranet > Sites > Advanced and add the CRM URL.

    The write the path as file://///servername/path (Yes, 5 slashes :) )

    Chrome and Firefox are more restricted.  Try this and see how you go.

  • Community Member Profile Picture
    on at
    RE: How to make file path or UNC Path clickable & display in field - CRM 2016 or Dynamics 365

    Thank you for info. I have a question :-

    file://///servername/path ----> here path is location drive or computer location or full path of file ?

  • Suggested answer
    Nadeeja Bomiriya Profile Picture
    6,804 on at
    RE: How to make file path or UNC Path clickable & display in field - CRM 2016 or Dynamics 365

    Hi Deepthi,

    Please see the examples below.

    file://///ovt054919751953/c$
    file://///ovt054919751953/c$/Program Files (x86)/Microsoft

    I wrote a test web resource which shows the path stored in Contact's first name.

    <html><head><script src="ajax.googleapis.com/.../jquery.min.js" type="text/javascript"></script>
    <script>
    $( document ).ready(function() {
        console.log( "ready!" );
    	var firstname = window.parent.Xrm.Page.data.entity.attributes.get("firstname").getValue();
            document.getElementById("myLink").href=firstname;
    	console.log( firstname);
    });
    </script>
    </head><body style='overflow-wrap: break-word;'>
    <a href='file://///ovt054919751953/c$/program files (x86)/microsoft' id='myLink'>Test</a>
    
    </body></html>


    Here's the result when I click on the Link.

    UNC-Path.png

  • Community Member Profile Picture
    on at
    RE: How to make file path or UNC Path clickable & display in field - CRM 2016 or Dynamics 365

    Thanks Nadeeja. I got for IE but most of end users uses the crm in google. I'm trying for Google chrome which blocking local files due to security issues. Can you help me out?

  • Verified answer
    Nadeeja Bomiriya Profile Picture
    6,804 on at
    RE: How to make file path or UNC Path clickable & display in field - CRM 2016 or Dynamics 365

    Hi Deepthi,

    Chrome does not allow local files to be opened from within a web page. Please see below.

    blog.chromium.org/.../security-in-depth-local-web-pages.html

    But, there's a Chrome Extension you can install, which makes this possible.

    chrome.google.com/.../jllpkdkcdjndhggodimiphkghogcpida

  • Community Member Profile Picture
    on at
    RE: How to make file path or UNC Path clickable & display in field - CRM 2016 or Dynamics 365

    Hi Nadeeja,

    Thank you for giving useful information. It really helpful for me. Till now, I achieved showed in below images -

    1586.2.jpg

    1586.2.jpg

    using local links extension I'm able to access file system in the chrome. There is any another way to achieve the same goal without any extension.

    As end users in our project doesn't have any knowledge of using extensions. I'm trying to do this ->couldn't see a way to make possible.

    Heard about

    FileReader - Web APIs | MDN 

    don't how to use with java script along with CRM.

    If you find this useful material, I like to see any example how to access UNC file path, make clickable and display in google chrome?

    Thank you for your time and help.

    Looking forward for your reply.

    Thanks ,

    Deepthi

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
UllrSki Profile Picture

UllrSki 2

#3
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans