CSOM Bridge Set Up
Last updated
Last updated
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.
In order to query site collections, CSOM extensions must be installed on the SharePoint server. For help installing these .
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.
NSSM must be used to host the bridge, do not use the EXE service install commands.
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.
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.
Configure a SharePointLegacy source to connect to the on-premises SharePoint. For support setting this up use