SharePoint Document Management
Problem statement
In this article, we will cover implementing default users to upload the document on the SharePoint repository.
In the OOTB Dynamics 365 Finance & Operations, You need to provide the uploading rights to every user over the SharePoint folder, so he/she can upload the documents to the SharePoint.
What if your documents are secure and you want to hide one user's documents from another one?
You can implement the XDS security on the D365FO end, but what about SharePoint? if the user can directly log in to SharePoint then he/she can see the document of all other users.
Solution
In D365FO, I introduce the feature to set the default user to upload the document to the SharePoint repository on the behalf of all D365FO Users.
At the end of the article, you will find the github link to download the project.
Reference Screenshot
Before jumping directly to the solution, first, we need to understand, how the application is making the proxy connection?
D365FO makes the proxy connection using your external identity, and external identity is populated to the record only when the user login on the D365FO at least once.
What are the classes and forms D365FO is using in uploading the documents to SharePoint?
Following is the form and the classes that are in use of Dynamics 365 Finance & Operations to upload the documents at SharePoint
Form
- DocuParameters
Classes
- DocGlobalHelper
- ExportToExcelStorageHelper
- OfficeSharePointFolderSelection
- Docu
- CollabsitesharepointonlineProxy
- CollabsiteSPonlineTemplateManager
- DocDocuActionFileWithMetadata
- DocSharePointHelper
- DocSharePointHelperV2
What are the Implementation steps?
First, download the solution from this Download link.
Import the project into your solution.
The solution contains the following elements.
Form
- Extension of DocuParameters
- Extension of DocuView
Table
- Extension of DocuParameter(Table)
Classes
- Extension of xUserInfo
- Extension of DocGlobalHelper
- Extension of DocuValue
- New File - DownlaodSharePointFile
Menu Item
- Download SharePoint
Now perform Build and Sync.
Now create a separate user for document management ex. D365SharePointDoc@Yourdomain.com
Create the SharePoint folder hierarchy for document management.
Grant the permission and rights to the newly created user over SharePoint and target folder.
Revoke the rights of other users from the SharePoint document folder.
Set the user as default to the document management parameter form, reference image available on Top.
Check the SharePoint connection.
When the user will upload the document at SharePoint, you will see the name of your default user name.
Reference screenshot
But on the database level, you will see the name of the user who uploaded the document.
Reference screenshot
Important
If you are using any custom solution for attachment and uploading the document, then perform the proper testing at your end.
I have developed and tested the solution on 10.0.24.
Are you new to stocks and cypto currency trading and want to be successful in your trade if yes then get help from the most down to earth and reliable expert trader I has been managing trading account for some time now and I can proudly say I make Good withdrawals monthly of $5000 Kindly reply back for more information on how to trade Contact via whatsapp +447883246472 email: tdameritrade077@gmail.com
ReplyDeleteDocument management with SharePoint lets users manage common document types, such as Word, Excel, PowerPoint, OneNote, and create folders to save and manage those documents in customer engagement apps (Dynamics 365 Sales, Dynamics 365 Customer Service, Dynamics 365 Field Service, Dynamics 365 Marketing. Contact is for SharePoint Implementation.
ReplyDeleteInvesting online has been a main source of income, that's why knowledge plays a very important role in humanity, you don't need to over work yourself for money.All you need is the right information, and you could build your own wealth from the comfort of your home!Binary trading is dependent on timely signals, assets or controlled strategies which when mastered increases chance of winning up to 90%-100% with trading. It’s possible to earn $10,000 to $20,000 trading weekly-monthly in cryptocurrency(bitcoin) investment,just get in contact with Mr Bernie Doran my broker. I had almost given up on everything and even getting my lost funds back, till i met with him, with his help and guidance now i have my lost funds back to my bank account, gained more profit and I can now trade successfully with his profitable strategies and software!! Reach out to him through Gmail : Bernie.doranfx01@gmail.com ,Telegram: bernie_doran_fx or +1(424)285-0682 for inquires
ReplyDelete