I have an MS flow, which is uploading Note attachment to SharePoint on note creation. When I try to open the file in SharePoint, It gives the file content/corrupt error.
CRM is an online trial version
Can someone help?
Solved! Go to Solution.
Hi @HaiderShah1 ,
Do you want to upload Dynamics 365 Notes attachment to SharePoint library when a Note is created?
Please check the following scenario for a reference.
In my scenario, I will upload Note attachment which is related to Accounts entity to SharePoint library.
Add the trigger When a record is created in Notes entity.
Then Get the related Accounts entity using action Get record.
Initialize a time string variable, set the Value with the following code:
Add Delay until action.
List records in the Document locations entity with the following code in Filter query:
_regardingobjectid_value eq Account
By the way, configure the Top count value to 1 to limit the results to one record.
The last step is to create file in SharePoint library. Specify the Site Address and Folder path, select dynamic content File Name for File Name field, and for File content field, input the following code:
When a note is created, the attachment will be created in SharePoint library, and it won’t corrupt.
It might have worked for you. The actual issue is file sharing and security.
Late last year, there was a security update on how file importing is to be done in SharePoint. Files cannot be shared publicly but there must be a specific audience to whom it can be shared. This needs to be made aware to the users to this application.
In short share with Everyone.
Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.
Look out for new contribution recognition badges coming SOON!
We've updated and improved the layout and uploading format of the Power Automate Cookbook!
Fill out a quick form to claim your user group badge now!
The top training and networking event across the globe for Microsoft Business Applications