In the Documents Setup, a new Default Storage Provider is available - SharePoint.
To use it - the user must specify all needed data in the SharePoint tab.
The app must be registered on the Azure Portal and all data must be taken from there.
In Subfolders the user can specify where the file will be uploaded when it is added to the specific document.
If Path is empty - the file is added to the base folder.
If the folder is chosen but does not exist anymore (for example was deleted) - the user will see an error when he tries to upload the file to the document.
If the folder already contains the same file that is being uploaded - the user will see an error because the file cannot be applied twice.
If files are taken from the previous document (for example when Work Order with documents is being closed - the documents are added automatically to the Posted Work Order) - these files are not changing their place on SharePoint, they are also not duplicated, they are still in the folder where they were placed for the first time.
In setup, you can decide what is the defaul open action - it means what will happen when you double-click. on the document attached to the record. You can choose between downloading and opening it on SharePoint.
On the record with documents you can (only new functionalities):
When you will try to use the link option, a window with a SharePoint folder will open.
When you check all folders you can switch between folders to find the right file.