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

Accessing network shared path file from CRM form

$
0
0

Hi,

In our online CRM implementation, we have a requirement to open a file  (image\pdf) from CRM 2016 form.

We tried to use webresource and use hyperlink to open local file.But we are getting error "Not allowed to load local resource" in chrome.In IE, it is failing to open file without giving any error.

We used the below javascript to open the file :

<a id="doclink" target="_blank">
click here
</a>

<script language="javascript" type="text/javascript">
var link = "D:\\FolderName\\test.jpg";
var hyperlink = document.getElementById('doclink');
hyperlink.href = "file:"+link;
</script>

Also we tried with window.open(filepath).That also giving same error.

Kindly suggest how we achieve this?

Thanks in advance,

Sebastian


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images