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)

Cannot create hyperlink to network location in CRM

(0) ShareShare
ReportReport
Posted on by 160

Hi everyone,

In Account we are trying to have a field which we can insert a hyperlink to a network attached storage device and it will just click through for the user. Each account would have its own folder in the NAS and the idea would be that the administrator would manually input the NAS folder location when creating the account.

But 'URL fields' block this because it does not have the HTTP/FTP prefix and if we insert the network location into other fields it does not seem to recognise it as a hyperlink.

Any help much appreciated.

Thanks

Jamie

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    rgoncalves Profile Picture
    on at
    RE: Cannot create hyperlink to network location in CRM

    You can use javascript to do what you want.

    www.wkoorts.com/.../javascript-snippet-remove-base-url-from-link

    URL must have the protocol for that crm can know that is a url.

    Best regards,

    Ricardo Gonçalves

  • Suggested answer
    Hosk Profile Picture
    on at
    RE: Cannot create hyperlink to network location in CRM

    I don't think you can do this using the standard fields.

    You could do this as an iFrame

    or store it as standard text and then trigger an onchange javascript to open the value in a new window.

    below is a CRM 4 solution, which you can update to CRM 2011

    community.dynamics.com/.../32936.aspx

  • Josh Thompson Profile Picture
    1,115 on at
    RE: Cannot create hyperlink to network location in CRM

    I have used something like this with various degrees of success. It typically requires some IE settings modified to allow JS to access these resources and adding the site as a trusted site.

    The commented out sections can each be tried to see what works.

    function navUNCPath(){

     if (Xrm.Page.getAttribute("new_filelocation").getValue() != null){

        var folderunc = Xrm.Page.getAttribute("new_filelocation").getValue() ;

        document.getElementById("new_filelocation").style.color="#DF0001";

        document.getElementById("new_filelocation").style.textDecorationUnderline = true;

        document.getElementById("new_filelocation").onclick =function(){

    //window.open("file://MyMachineName/C$/SampleTextFileForCRM.txt")

        window.open(folderunc)    

        //openStdWinWithFeatures(folderunc,"McGladrey",800,600,"status=1");

        // openStdWin(folderunc, "McGladrey 2013", 800,600,"status=1");

          //window.open(folderunc, "_blank", "width=900px,height=600px,resizable=1");

        //window.navigate(folderunc); //clears entire window. have to F5

        }

     }

    }

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
Community Member Profile Picture

Community Member 2

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
UllrSki Profile Picture

UllrSki 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans