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");
}