How to connect to Reltio through domo
Hi Team,
I am trying to connect to Reltio via api connector. Since the connector is not available in repository I am trying to build it manually.
Connecting to reltio consists of calling an API with username and password. The API uses a basic authentication with base64 encoded Authorization header. Also the URL consists of query parameters like username , password and grantType.
I am using the below script, but it is not working. Can you please help me in this:
Script:
//This logging is here for testing! Remove before publishing your connector
DOMO.log('metadata.account.username: ' + metadata.account.username);
DOMO.log('metadata.account.password: ' + metadata.account.password );
var encodedData = DOMO.b64EncodeUnicode(metadata.account.username + ':' + metadata.account.password);
var metadata.account.user = 'requisite username';
var metadata.account.pass = 'requisite password';
httprequest.addHeader('Authorization', 'Basic ' + encodedData);
var res = httprequest.get('https://auth.reltio.com/oauth/token?username=' + metadata.account.user&'password=' + metadata.account.pass&'grant_type=password');
if(res.indexOf('Account.Name') > 0){
auth.authenticationSuccess('Success');
} else {
auth.authenticationFailed('Failed');
}
Comments
-
Hi Team,
Any updates on this?
0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 753 Beast Mode
- 61 App Studio
- 41 Variables
- 692 Automate
- 177 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive