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 :
Microsoft Dynamics CRM (Archived)

Entering a file path or UNC and having a clickable link in CRM / Open local files and folders in CRM 2016 and Dynamics 365 / Accessing network shared path file

(0) ShareShare
ReportReport
Posted on by

We had a solution in CRM 2011 that allowed users to enter and click a link to access to local file resources and UNCs.  Worked great.  

ie: user enter some UNC and got a clickable link.  Code below.  Easy for end users = good.  Low impact for admins = good.

12_2D00_23_2D00_2016-12_2D00_36_2D00_40-PM.png

var setStyles = function(element,value){
if(element){
element.style.textDecorationUnderline = true;
element.style.color = "blue";
element.attachEvent('ondblclick',function(){
var e = (event||window.event);
var w = window.open(e.srcElement.value,"","",true);
if(e.srcElement.value.toLowerCase().indexOf('outlook')!=-1){
w.close();
}
});
}
}
var qu2 = document.getElementById('new_quoteloc');
setStyles(qu2);

With the elimination of DOM support, things no longer work.  I have yet to find a solution to this problem.  AFAIK, in CRM, even in the latest version, we have ONLY text or URL options to choose from (and URL does not recognize FILE:\\ or \\ UNC).  

There seems to be no OOB mechanism to support giving end users the ability to open files unless you implement full-blown Sharepoint integration, which I think might solve the problem but that's far more cost and complexity than this situation needs.

Unless I'm mistaken, none of these seem to work for this application:

• community.dynamics.com/.../198258

• http://thecrmclub.blogspot.in/2013/10/step-by-step-how-to-open-local-file.html

• http://blog.zealots.solar/?p=54

• https://community.dynamics.com/crm/f/117/p/20893/32949#32949

• https://community.dynamics.com/crm/f/117/t/141389

• https://community.dynamics.com/crm/f/117/t/218056

• community.dynamics.com/.../141897

• https://community.dynamics.com/crm/f/117/t/163993

• https://community.dynamics.com/crm/b/crmmattwittemann/archive/2008/09/19/create-a-link-to-a-file-or-directory-from-a-crm-record

• community.dynamics.com/.../creating-a-network-path-text-control-for-microsoft-dynamics-crm-2011

Seems like a lot of other people have asked this same question but MS does not think it's important enough to support OOB so I'm wondering if anyone has found a custom solution?

Thank you.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Guido Preite Profile Picture
    54,086 Moderator on at

    store the full path in a normal text field and create an html webresource to show the path as an html link.

    this is the supported way to do it

  • Alphabetman Profile Picture
    on at

    Guido can you show me how you go about creating this html webresource to show the path as an html link. in CRM 2016

  • Hani Adel Profile Picture
    135 on at

    Please 

    help to share the complete solution :(

    regards,

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans