I have this scenario where I need to synchronously create a SharePoint folder when a d365 record is created, so this service can create a record and upload files.
I've found this Implementing custom document location logic with a plugin | It Ain't Boring (itaintboring.com)
But the code appears to be blocked by the fact online only register plugins in the sandbox mode.
It throws the security error on the httpclient = new HttpClient()
based on this article, (+) Plugins in the sandbox, and why you don't get System.Security.Permissions.SecurityPermission - Microsoft Dynamics CRM Community
I can't see how to accomplish this.
Is it possible at all to integrate with Sharepoint online from a d365 online plugin?
Hi JWhite2021,
Currently, one folder will be created automatically in sharepoint when you upload file in the dynamics.
If you want to create a folder when creating a new record, you can try to use power automated to achieve it.
The SharePoint connector has an action ‘Create new folder’
SharePoint - Connectors | Microsoft Docs
Regards,
Leah Ju
Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.