Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Unanswered

Unable to connect SharePoint Cloud through Microsoft Dynamics CRM Plugin

(0) ShareShare
ReportReport
Posted on by 5

Hi All,

I am working on functionality where from CRM when ever any customer is created a customer folder prefixed with customer name to be created in SharePoint site. Once the customer folder is created he will added as only authorized person to view this folder.

To do this I used SharePoint Rest API . I am trying to connect SharePoint cloud from Microsoft Dynamics Plugin. I am using SharePoint Rest API for the connectivity.
Registered add-in in SharePoint And granted permission to allow for web/List site collection.I am able to get the access_token from SharePoint site but when i am trying to query any SharePoint object(Folder) its not allowing me to do. As a response to my query its returning response as "Attempted to perform an unauthorized operation."

API Url fomed : ./sites/dev/_api/Web/GetFolderByServerRelativeUrl('/Customer/Shobhit 1')?$expand=Folders,Files

Here Customer is a parent folder under which we ill be having individual customer folders which is (Shobhit 1).

Also please tell me if i have to remove or add any users for Managing the folder access permission is it possible through Rest API.

Appreciate any help here.

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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans