Xrm.Navigation.openFile
“This attachment can not be opened on your device”–error while trying to open a file using Xrm.Navigation.openFile
Category: attachment cannot be opened on your device,CDS,Dynamics 365,Microsoft CRM,Microsoft Dynamics CRM,Xrm.Navigation.openFile Author: Debajit Dutta Date: 3 months ago Comments: 0

This is an error I was facing while trying to download file using Xrm.Navigation.openFile. I was trying on unified interface on web browser. Tried on all browsers and I was getting this error. Below is my code which I was trying. var file = {    fileContent: “YWJjZA==”, //Contents of the file.     fileName: “test.txt”, //Name … Continue reading ““This attachment can not be opened on your device”–error while trying to open a file using Xrm.Navigation.openFile”
Source: Debajit


Using Xrm.Navigation.openFile to download a note attachment file with file save confirmation dialog
Category: annotation download,CDS,Download,Dynamics 365,Microsoft CRM,Microsoft Dynamics CRM,Xrm API,Xrm.Navigation.openFile Author: Debajit Dutta Date: 3 months ago Comments: 0

I got this requirement recently and wanted to share with my readers. Quite a cool feature actually and some common requirement. So there is a ribbon button on a entity form. When the ribbon button is clicked, it should query an annotation attachment, get the content and then throw the file save dialog option to … Continue reading “Using Xrm.Navigation.openFile to download a note attachment file with file save confirmation dialog”
Source: Debajit