CSOM Bridge Set Up

It hosts a REST API that connects Aiimi Insight Engine systems written in .NET to on-premises SharePoint instances. A SharePointLegacy source uses CSOM Bridge as a proxy that makes the calls to SharePoint.

If you need to deploy the CSOM Bridge on a dedicated host please speak to your Aiimi contact.

Prerequisites
  1. The latest version of .NET Framework is installed.

  2. Aiimi Insight Engine is installed.

Installation

SharePoint

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

1

Open the CSOMBridge appsettings.json file. Likely stored in \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.

2

Set the CSOM Bridge port to use.

  • By default this is set to port 2227. It's secured using the internal elastic-certificates.p12 HTTPS certificate.

3

Set the systemSecret to match the rest of your system.

4

Save and close the appsettings.json file.

5

Open the log4net.config file for CSOMBridge

  • <IM_ROOT>\Utils\InsightMaker.CSOMBridge\log4net.config

  • Check the file location and set the logging settings for your requirements.

6

Save and close the log4net.config file.

CSOM

NSSM must host the bridge, do not use the EXE service install commands.

Before running any scripts, check the root folders match your file structure.

1

Open an admin PowerShell.

2

Run the following script to install the CSOMBridge.

run %PATH_TO_NSSM%\nssm.exe install InsightMakerCSOMBridge
3

Set the Application path to:

<IM_ROOT>\Utils\InsightMaker.CSOMBridge\InsightMaker.CSOMBridge.exe

4

Set the Startup Directory to:

<IM_ROOT>\Utils\InsightMaker.CSOMBridge\

5

The name must include "CSOMBridge".

  • This allows upgrade scripts to start and stop correctly.

6

The remaining parameters can be set as required.

7

Select Install Service.

8

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.

1

The "REST Endpoint" should point to the CSOM Bridge's remote API address.

2

Within the Source Config the "Process without Delta Tokens?" must be enabled.

Last updated