Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Plugin to upload file to SharePoint

(0) ShareShare
ReportReport
Posted on by 12
Hi all,
 
I trying to upload a file to Sharepoint using plugin, but I am not able to achieve it. I am getting 403 Forbidden error. I have gone through many blogs related to it, but I am not getting how to use those codes as many of them are not supporting. I saw few similar posts here as well, but I am not getting the solution.
 
I referred the below blog and successfully getting the Access Token: https://ajitpatra.com/2020/01/06/d365-call-sharepoint-api-from-plugin-custom-workflow-c-part-1/
 
But I didn't get any proper reference code for uploading the file. I have written below code, which is throwing {403 Forbidden} error.
 
 
URL = /http://DOMAINNAME.sharepoint.com/sites/MyPowerPlatformLearnings/_api/web/GetFolderByServerRelativeUrl('SharedDocuments/Datavesrse')/Files/add(url='a.txt',overwrite=true)/;
 
 
 
Thank you.
  • Inogic Profile Picture
    Inogic 438 on at
    Plugin to upload file to SharePoint
    Hi,
     
    A 403 Forbidden error generally occurs when you don’t have the necessary access to the SharePoint site.
     
    If you are looking for an addon instead of a plugin you should check out our "Attach2Dynamics" which will help to upload attachments from Microsoft Dynamics 365 CRM to SharePoint with basic configurations. With this tool, you can migrate notes, emails/other activity attachments to SharePoint in real-time using a user-friendly interface residing within your CRM.
     
    Attach2Dynamics app has multiple features like upload, download, drag and drop file/folder, rename, delete, etc. through Attach2Dynamics UI. Also, we can migrate attachments in bulk to SharePoint and other cloud storage services like Dropbox and Azure Blob Storage.
     
    Users can also automatically move/copy Dynamics 365 CRM Notes Attachments/Email Attachments, and Sales Literature Attachments to Dropbox, SharePoint, or Azure Blob Storage in real time, providing a more flexible and scalable approach to data management.
     
    You can learn more about this on our website or Microsoft Appsource. Once you install our Attach2Dynamics solution, kindly refer our docs to further evaluate it.
     
    For more information or a live demo of our app, feel free to reach out to us at crm@inogic.com.
     
    Thanks!

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.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,575 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,493 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans