Longview Adapter - Setting Up with CXO
Installation Prerequisites
CXO Version 24.1.3 (or higher)
.NET 6.0 or higher has to be installed
CXO Identity provider
Longview version 24.2.0 or newer
Important: Restart server after installing .NET core hosting bundle.
Setting up
Install Longview Tidemark Adapter.
-
Open CXO Configurator > Maintenance and click Register Services and Website.
-
Select Register Longview Adapter Api to add service account details.
Create Client in the CXO Identity Provider.
Identity Provider Configuration
Create new Generic Client.
Select Allow Offline Access.
-
Add the following scopes:
User profile
User groups
-
Add Redirect URL(s) in the following format:
{LongviewTidemarkAdapterUrl}/signin-oidc
-
Add Post Logout Redirect URL(s) in the following format:
{LongviewTidemarkAdapterUrl}/signin-oidc-auth
Tip: RedirectUri’s are case sensitive so it’s good practice to use lowercase in all URLs.
CXO Configuration
To use Longview Tidemark Adapter you need a license key with Longview enabled.
-
Initialize the Longview adapter. This needs to be one time for the initial setup and is performed by running a few commands which require few parameters as an input.
For more information on the available commands and their parameters, run the CXO.Adapter.LongviewTidemark.Cli.exe help command for detailed descriptions.
-
Open command line as Administrator, browse to the Longview Tidemark Adapter\Extraction folder and run the initialize command to create the configuration database.
Avoid using spaces in the parameter values.
Command Initialize Parameters server-name: Name of the server on which the database should be created
database-name: Name of the database to be created
authentication-type: windows / proprietary
username: SQL user name (if authentication-type = proprietary)
password: SQL user password (if authentication-type = proprietary)
disable-encryption (optional): Set to yes to disable database encryption
Example .\CXO.Adapter.LongviewTidemark.Cli.exe initialize server-name:cxo-dev-sql02 database-name:CXO.Adapter.LongviewTidemark.Configuration authentication-type:Proprietary username:cxo password:somePassword disable-encryption: yes
-
Run the set-authentication-settings command to set up the identity provider values.
Note: UserGroup specified in "idp-client-allowed-user-group" should be created in CXO. Only users from that group are allowed to open CXO Longview Adapter.
Command set-authentication-settings Parameters idp-authority: URL to IDP setup
idp-client-id: The client id set in IDP
idp-client-secret: The client secret from IDP
idp-client-allowed-user-group: The user group that is allowed to use the Longview Adapter
Example .\CXO.Adapter.LongviewTidemark.Cli.exe set-authentication-settings idp-authority:https://cxoUrl/idp idp-client-id:LongviewClientUI idp-client-secret:secret idp-client-allowed-user-group:ADM
Restart the Application Pool for Longview.
Creating a Longview Source
-
Create a new source system in the SSM for the correct source type: Longview to create:
Fact database
SSAS cube
It’s recommended to use the same source name in the SSM as in the command below, otherwise scheduling extractions will not work
Run the create-source-in-adapter command to create a new Longview source.
Important: At this point you can decide the type of Longview source as either Longview Close or Longview Tax. This selection cannot be changed after source creation!
Longview Plan and Longview Close work the same way. Similarly, Longview Tax and Transfer Pricing work the same way. But if you want to integrate with Longview Plan, you need to select Longview Close, and if you want to connect to Transfer Pricing, you will have to select Longview Tax.
| Command | create-source-in-adapter |
|---|---|
| Parameters |
|
| Example | .\CXO.Adapter.LongviewTidemark.Cli.exe create-source-in-adapter source-type:longview-close source-name:MyLongviewCloseSource factdb-name:cxo_fact_MyLongviewCloseSource factdb-server:cxo-dev-sql02 factdb-authentication-type:1 ssas-server-name:cxo-dev-as01 ssas-database-name:MyLongviewCloseSource ssas-cube-name:CXO first-period:Apr disable-encryption: yes |
After running the above commands, the adapter is configured, and a first source is available. When multiple sources are required, run the create-source-in-adapter command for each source that is required.
Each source is created with a default configuration for dimensions, Longview symbol names, etc. These defaults need to be changed for the source to function properly. This is explained in Longview Adapter User Interface.