CSOM Bridge Set Up
This is for Windows Only.
The CSOM Bridge is for Windows applications only. It hosts a REST API that connects Aiimi Insight Engine systems written in .NET to on-premises SharePoint instances. The SharePointLegacy source requires the CSOM Bridge service to be a proxy that make calls to SharePoint.
If you require the CSOM Bridge to be deployed on a dedicated host please speak to your Aiimi contact.
Installation
SharePoint
In order to query site collections, CSOM extensions must be installed on the SharePoint server. For help installing these see Microsoft's guide on New CSOM API for Sharepoint Servers.
Aiimi Insight Engine
Open the appsettings.json file for CSOMBridge
<IM_ROOT>\Utils\InsightMaker.CSOMBridge\appsettings.json
The CSOM Bridge does not connect to Elastic or use plugins. It only needs a RemoteAPI section and system secret.
Set the CSOM Bridge port to use.
By default this is set to port 2227. It is secured using the internal elastic-certificates.p12 HTTPS certificate.
Set the systemSecret to match the rest of your system.
Save and close the appsettings.json file.
Open the log4net.config file for CSOMBridge
<IM_ROOT>\Utils\InsightMaker.CSOMBridge\log4net.config
You should check the file location and set the logging settings for your requirements.
Save and close the log4net.config file.
CSOM
NSSM must be used to host the bridge, do not use the EXE service install commands.
Before using any scripts in this guide, please update the root folder to match your file structure.
Open an Administrator Command Prompt or PowerShell.
Run the following script to install the CSOMBridge.
Set the Application path to
<IM_ROOT>\Utils\InsightMaker.CSOMBridge\InsightMaker.CSOMBridge.exe
Set the Startup Directory to
<IM_ROOT>\Utils\InsightMaker.CSOMBridge\
The name must include "CSOMBridge".
This allows upgrade scripts to start/stop it correctly.
The remaining parameters can be set as required.
Select Install Service.
Within the Windows Service Area start this service.
Sharepoint Legacy Source
Configure a SharePointLegacy source to connect to the on-premises SharePoint. For support setting this up use our guide on setting up new sources.
The "REST Endpoint" should point to the CSOM Bridge's remote API address.
Within the Source Config the "Process without Delta Tokens?" must be enabled.
Last updated