Xrm.Device.pickFile in D365 v9.0

Blog Thumbnail
Introduction: 
In this blog we will looking at an example to attach the uploaded files to notes using the Xrm.Device.pickFile function in unified Interface in D365 v9.0

Implementation:
Step 1: In this example we will create a button on the Contacts entity and we have written a JavaScript function to trigger on button click.
In Ribbon Workbench after creating a button we created a command as shown below and added the command on the button.
Ribbon Workbench Command
Step 2: On clicking on the Upload button a dialog box opens and we can select the file we want, this file will then be attached in the notes section of the particular record. 
Attached File to notes

Code:

Hope this Helped!


Comments

Popular posts from this blog

Run Workflow directly from a button in Dynamics 365 Customer Engagement V9.0

Create and Associate Records in a single operation using Xrm.WebAPI in D365 Customer Engagement

Use Audit Logs in Dynamics 365 : Actionable Audit