Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Unanswered

Unable to connect SharePoint Cloud through Microsoft Dynamics CRM Plugin

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

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

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

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,552 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,552 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans