SharePoint Online DMS Extension
Product line
Standard
|Expert
Operating mode
CLOUD ABO
|ON-PREMISES
Modules
Services & CRM
Budget & Phases
Purchases
Resource Planning
Business Intelligence
The SharePoint Online DMS Extension allows integration with SharePoint Online.
The following operations are not possible:
The following steps are required to start up the extension:
For the operation of the extension a Sharepoint Online is required. There must be at least one main user / administrator with login. Here in the examples we use a Microsoft Office 365 with Sharepoint Online.
It can: several document libraries via Sharepoint interface The maximum quantity is 200 sites in Vertec versions prior to 6.4.0.21.
To install the extension, open the Sharepoint Online DMS Extension in the settings folder and click Install
.
The extension creates the following CRM/Activity system settings:
DMS SharePoint Application ID: Application ID in SharePoint Online, see section Register Vertec application in Office 365. PropertyName: DmsSharePointApplicationId. StringProperty . |
DMS SharePoint Application Secret: Vertec registration key in SharePoint Online, see section Register Vertec application in Office 365. PropertyName: DmsSharePointApplicationSecret. StringProperty . |
DMS SharePoint Library URL: Path to the shared SharePoint site, see section Creating or determining a Sharepoint site. PropertyName: DmsSharePointDocumentLibraryUrl. StringProperty . |
Using DMS SharePoint OAuth individual login: Enabling individual authentication, see section “Individual authentication” mode . PropertyName: DmsSharePointUseIndividualLogin. BooleanProperty . Default setting: No. |
After changing the values in the system settings, Vertec must be restarted or clicked on the Reload
button in the Sharepoint Online DMS Extension.
The system settings General > Document storage
must be on Filesystem oder DMS
be set.
The base path (System settings General > Document Path
is specified with Sharepoint:
followed by the directory in which the Vertec documents are to be saved in the Sharepoint, e.g. Sharepoint:\mydir
.
The documents generated from Vertec or via Vertec Explorer add-in saved in Vertec are saved directly in Sharepoint Online.
The Vertec Document management
is designed in such a way that the SharePoint:
Prefix can also be used individually for objects or objects. Classes
It is therefore also possible to save only certain documents in Sharepoint without changing the general document path to Sharepoint.
The Sharepoint Online DMS extension provides two different operating modes for user authentication:
Here, Vertec always loads the documents for all users under the same user account, or the name configured in the app registration, as “Vertec app”. User rights cannot be used to distinguish who has uploaded the document.
Starting with version 6.5.0.1. For the system settings to be visible, an already installed Sharepoint Online DMS extension must be uninstalled and reinstalled.
Prerequisite: The initial activation of the user logins can only be done by means of a cloud or web app. After that, all Vertec apps can be used.
Vertec also logs in to Sharepoint as a “Vertec app,” but the files are stored with the corresponding user’s Sharepoint account. For this to work, each user must log in once via a browser. The credentials are sent back to Vertec and the documents are uploaded under this user account. This shows which user uploaded the documents.
To activate individual authentication, the checkbox must DMS SharePoint OAuth individuelle Anmeldung verwenden
in system settings > CRM / activities. In addition, in the Microsoft 365 Admin Center under app Registration > Vertec (name of your registered Vertec app) the URL of your company access with /callback
at the end (e.g. https://demo.vertec-cloud.com/callback
) and the user rights, see further down
.
Several different document libraries can be accessed. The different libraries are distinguished by the path.
It is possible that the library URL is only partially specified in Vertec, in such a way that all library URLs to be used can be generated by completing this path.
Vertec first checks the Library URL stored in the system for completeness. If it is, this directory is used. If Vertec does not yet find a library with this step, the first directory from the Vertec document path is successively appended to the Library URL until a library is found. The rest of the document path is used to define the path of the file within the library.
If you want to use several document libraries and save documents per class, you have to consider the following:
Sharepoint:\MultiSite2\Shared Documents
. This is the default path and is used for all objects that have not defined a different path (see next item). The default path must be valid as a stand-alone path.Sharepoint:\MultiSite1\Shared Documents\contacts\%if oclistypeof(Contact) then oclastype(Contact).company.name else name endif%
.This process must be carried out once per company.
Microsoft Entra ID
App Registrations
on the left+ New Registration
Click
on the Register buttonVertec
= name of newly created appAPI user rights
> Add user rights
Anwendung
Add:API/Permission Name | description |
---|---|
Files.ReadWrite.All |
Read and write files in all site collections |
Sites.FullControl.All |
Have full control of all site collections |
Sites.Manage.All |
Create, edit, and delete items and lists in all site collections |
Sites.ReadWrite.All |
Read and write items in all site collections |
Delegiert
Add:API/Permission Name |
description |
---|---|
Sites.FullControl.All |
Has full access to all site collections |
Sites.Manage.All |
Create, edit, and delete items and lists in all site collections |
Sites.ReadWrite.All |
Edit or delete items in all site collections |
User.Read |
Log in and read user profile |
Add
user rights each time. This step activates the rights you just selected, administrator permissions are required. This step must be successful, otherwise the connection will not work later. If you have problems, Azure will report an error.Zertifikate und Geheimnisse
clickNew Client Secret Key
Verteckey
Add
Wert
appears, must be entered in the Vertec system settings under DMS Sharepoint Application Secret (see Instal the extension in Vertec). The key will no longer be retrievable later.This process must be carried out once per company.
At this point, there are 3 cases:
Select Open in Sharepoint
All 3 cases lead to the same result: There is now a SharePoint site and it is open in the browser.
Now in the Settings menu, click on the menu item Website settings
:
A list of the document libraries of the site will appear. In the action menu of the corresponding document library, click on Settings
:
Under Web address you should now see a link in the form https://kundenoffice365.sharepoint.com/sites/KundenTeam/Freigegebene Documents/Forms/AllItems.aspx?
.
Copy the first part of the link, without /Forms/Allitems.aspx
etc. (i.e. https://kundenoffice365.sharepoint.com/sites/KundenTeam/Freigegebene documents
) and enter it in the Vertec system settings under DMS Sharepoint Document Library URL (see Instal the extension in Vertec).
Starting with Vertec 6.4.0.10, the activity is passed as an object with the Storedocument method. The default interface continues to work as before, metadata will only be written if this is configured accordingly.
For metadata to be written, the used DMS extension must be overwritten or supplemented as follows. The example refers to the standard Vertec Sharepoint DMS extension.
A script is created with the following text:
# import DmsSharePoint class MyDmsSharePointExtension(DmsSharePoint.DmsSharePointExtension): __doc__ = “Enhancement of DMS extension with metadata” # pass # Override this method in a subclass to be able to define meta data during document upload. # This method Inf called by Vertec for each document that Inf uploaded. If the returned # dictionary contains entries, Vertec interprets the keys as site column name and the values # as site column value and writes meta data accordingly during document upload. def getMetaDataDict(self, vertecFilePath, content, activity): self.Log(“getMetaDataDict(...)” + (“ with activity” if activity else “ without activity”)) # override the extension and uncomment this line to activate the meta data example return self.getExampleMetaDataDict(vertecFilePath, content, activity) # empty dict => Vertec does not try to write meta data to SharePoint return dict()
This activates the getExampleMetaDataDict
method, which is in the standard interface and returns sample metadata. The corresponding code can be found in the standard interface:
The passed fields must match the metadata schema of your Sharepoint. This method will therefore also be overridden in the script generated above:
def getExampleMetaDataDict(vertecFilePath, content, activity):
or instead of the following row
return self.getExampleMetaDataDict(vertecFilePath, content, activity)
directly returned the corresponding values.
Then an extension entry is created with <Name des Scripts>.<Name der Methode> (How to customize an extension is described in the article Work with Extensions (Extensions)).
The standard Sharepoint Online DMS extension is then deactivated and the newly created one is installed.