In this blog we will see how we can open a PDF document on click of button from a record in CRM
Let say we have User Guide button on Lead Entity and on click of User Guide button, a PDF document which is User Guide document should be open in next tab.
![image](https://www.cloudfronts.com/wp-content/uploads/2022/01/image-50-1024x515.png)
Solution
- Create a solution and add lead entity only.
Then open the same solution in XRM Toolbox – Ribbon Workbench
![image](https://www.cloudfronts.com/wp-content/uploads/2022/01/image-51-1024x489.png)
![image](https://www.cloudfronts.com/wp-content/uploads/2022/01/image-55-1024x415.png)
var openUserGuide = { //openUserGuide.userGuide userGuide: function () { "use strict"; Xrm.Navigation.openUrl("https://sinerleak.sharepoint.com/:b:/s/SingerLewak/EaQO2OWjWA1BnHFCCENV-6EBDkILbg3EfPSFLEu-KCeraw?e=ofVyVB"); } }
- Add action to command and Publish the solution from XRM Toolbox
Output –
You must log in to post a comment.