Announcements
read and delete images from SharePoint folder and add into D365 products with x++
Hi Tamoor,
What is your exact question? Where exactly do you need help? What are your current attempts and where do you get stuck?
Hi sir,
Please refer to the old thread about read and save files from/into SharePoint with X++:
community.dynamics.com/.../how-to-read-and-save-files-from-into-sharepoint-with-x
Hi Judy,
Yes I followed this thread, it is working fine for reading and deleting the files.
but I am unable to createfile using Microsoft.Dynamics.Platform.Integration.SharePoint.SharePointHelper::CreateFile(proxy,"xxxxxx.sharepoint.com/.../foldername","filename",memoryStream);
We can't help you in any way if you don't explain your problem. There may be many reasons why you're unable to create a file and we can't know what's happening in your particular situation unless you tell us.
For example, maybe you get a compilation error or an exception at runtime. Then share the information with us, such as what type of exception it is and what the error message says.
Hi MartinI need to read the file(image) from Sharepoint folder i-e d365_product_images
(xxxxxx.sharepoint.com/.../d365_product_images ), add that image into Release products in D365 F&O => this is already been achieved.
Next step is to create same file(image) into another folder on sharepoint i-e archive_product_images (xxxxxx.sharepoint.com/.../archive_product_images).
While creating file in archive_product_images, it gives me access denied exception. I am able to access this folder while ready, and shared user has admin access.
There are many scenarios that can prompt one of these messages "Access Denied". The most common cause is that permissions for the user or administrator are configured incorrectly or not configured at all. You can follow the troubleshooting in MS document:
learn.microsoft.com/.../access-denied-or-need-permission-error-sharepoint-online-or-onedrive-for-business
hi Judy,
Thats what I understood when I got this error. But this is not the case, user has full access because I am able to delete files in this folder using code.
SP.SharePointHelper::DeleteFile(proxy,"xxxxx.sharepoint.com/sites/d365_products_image/archive_product_image",fileResultv1.Name,memoryStream122);
Does the folder exist?
yes Martin, this folder does exist.
folder path "xxxxx.sharepoint.com/sites/d365_products_image/archive_product_image" in this line of code,
does this folder path has the right format?
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Abhilash Warrier 461 Super User 2026 Season 1
André Arnaud de Cal... 428 Super User 2026 Season 1
Subra 428