Skip to main content
Skip table of contents

Connecting to lead alliance via SQL

You can use SQL to connect to lead alliance in the CData Virtuality Studio or the Code Editor in the Web UI.

Pre-requisites

  • You need the clientId and clientSecret.

How to Connect

Before you start retrieving data, you need to run the connector script for lead alliance in the CData Virtuality Studio or the Web UI and input your credentials in the following line: 

SQL
CALL SYSADMIN.createConnection(name => 'leadalliance_src', jbossCLITemplateName => 'ws', connectionOrResourceAdapterProperties => 'EndPoint=https://<EndPoint>/api/v1/index.php,ClientId=<ClientId>,ClientSecret=<ClientSecret>') ;;
 
CALL SYSADMIN.createDataSource(name => 'leadalliance_src', translator => 'leadalliance', modelProperties => 'cleanupMethod=<cleanupMethod>,is_subaccount=<is_subaccount>,prid=<prid>', translatorProperties => '') ;;

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.