Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 55831

Open Share network folder on Click of the field.

$
0
0

Hi All,

I need to open windows explorer share path folder from MS CRM 2013 or MS CRM 2015 entity form on click of the link. As you know in CRM we have URL field data type but  according to me this is not capable of to open windows folder, here with this URL field you can only open http, https, ftp URL's  not windows folder URI (ex:  \\Comp\Sharefolder\). 

So what I did I created a field on CRM form and attached Onlcik event on the load of the form with this field.

At last am able to attach Onclick event on the field control and able to open the share path link on IE. But the same is not working for Google Chrome and Firefox, because ActiveXObject doesn't work forGoogle chrome and Firefox. 

Would you please help me to Open network share folder from CRM form in Chrome and Firefox or please let me know how to invoke ActiveX object from chrome and Firefox.

Below I am using ActiveXObject to open share file path and search the content in it and this is working for me in IE but not in Chrome and  Firefox.

function CallFunction()
{
var CaseNumber = Xrm.Page.getAttribute("new_casenumber").getValue();
var oShell = new ActiveXObject("Shell.Application");
var commandtoRun = "search-ms:displayname=Search%20Results%20in%20Test%20Project%20MS%20CRM%202015%20(%5C%5CLR2XB2G)&crumb=System.Generic.String%3A" + CaseNumber + "&crumb=location:%5C%5CLR2XB2G%5CTest%20Project%20MS%20CRM%202015";
oShell.ShellExecute(commandtoRun, "", "", "open", "1");

}


Viewing all articles
Browse latest Browse all 55831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>