Skip to main content

Notifications

Announcements

No record found.

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 402 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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans