Integrate Anaplan Data in Your Informatica Cloud Instance
Informatica Cloud allows you to perform extract, transform, and load (ETL) tasks in the cloud. With the Cloud Secure Agent and the CData JDBC Driver for Anaplan, you get live access to Anaplan data, directly within Informatica Cloud. In this article, we will walk through downloading and registering the Cloud Secure Agent, connecting to Anaplan through the JDBC Driver and generating a mapping that can be used in any Informatica Cloud process.
Informatica Cloud Secure Agent
To work with the Anaplan data through the JDBC Driver, install the Cloud Secure Agent.
- Navigate to the Administrator page in Informatica Cloud
- Select the Runtime Environments tab
- Click "Download Secure Agent"
- Make note of the Install Token
- Run the installer on the client machine and register the Cloud Secure Agent with your username and install token
NOTE: It may take some time for all of the Cloud Secure Agent services to get up and running.
Connecting to the Anaplan JDBC Driver
With the Cloud Secure Agent installed and running, you are ready to connect to Anaplan through the JDBC Driver.
Adding the JDBC Driver to the Secure Agent Machine
- Navigate to the following directory on the Secure Agent machine:
%Secure Agent installation directory%/ext/connectors/thirdparty/
- Create a folder and add the driver JAR file (cdata.jdbc.anaplan.jar) based on the type of mapping that you want to configure.
For mappings, create the following folder and add the driver JAR file:
informatica.jdbc_v2/common
For mappings in advanced mode, also create the following folder and add the driver JAR file:
informatica.jdbc_v2/spark
- Restart the Secure Agent.
Connecting to Anaplan in Informatica Cloud
After installing the driver JAR file, you are ready to configure your connection to Anaplan in Informatica Cloud. Start by clicking the Connections tab and clicking New Connection. Fill in the following properties for the connection:- Connection Name: Name your connection (i.e.: CData Anaplan Connection)
- Type: Select "JDBC_V2"
- Runtime Environment: Select the runtime environment where you installed the Secure Agent
- JDBC Driver Class Name: The name of the JDBC driver class: cdata.jdbc.anaplan.AnaplanDriver
- JDBC Connection URL: Set this to the JDBC URL for Anaplan. Your URL will look similar to the following:
jdbc:anaplan:OAuthClientId=your_client_id;OAuthClientSecret=your_client_secret;CallbackURL=your_callback_url;Region=US1;InitiateOAuth=GETANDREFRESH;
Authenticating to Anaplan
The driver supports authenticating with Basic, Certificate, or OAuth. In every case, set Region to the region where your Anaplan account data is hosted (e.g., US1, which is the default).
Using Basic Authentication
Set AuthScheme to Basic, then supply your Anaplan User and Password. If your workspace uses single sign-on (SSO), you must be assigned as an Exception User to use Basic authentication.
Using Certificate Authentication
Set AuthScheme to Certificate, then supply the Certificate, CertificateType, and PrivateKey properties (and the matching CertificatePassword / PrivateKeyPassword if either is encrypted). The certificate must be a CA-issued X.509 certificate registered with your Anaplan tenant administrator.
Using OAuth Authentication
Register a custom OAuth application in Anaplan, then set the following properties:
- OAuthClientId: The client Id assigned when you registered your custom OAuth application.
- OAuthClientSecret: The client secret assigned when you registered your custom OAuth application.
- CallbackURL: The redirect URI defined when you registered your application.
- InitiateOAuth: Set to GETANDREFRESH to have the driver manage the OAuth token exchange and refresh automatically.
See the Getting Started chapter of the help documentation for a guide to creating a custom OAuth app and using OAuth.
Built-In Connection String Designer
For assistance in constructing the JDBC URL, use the connection string designer built into the Anaplan JDBC Driver. Either double-click the .jar file or execute the .jar file from the command-line.
java -jar cdata.jdbc.anaplan.jarFill in the connection properties and copy the connection string to the clipboard.
- Username: Set this to a placeholder value (since Anaplan does not require a username)
- Password: Set this to a placeholder value (since Anaplan does not require a password)
Create a Mapping for Anaplan Data
With the connection to Anaplan configured, we can now access Anaplan data in any Informatica process. The steps below walk through creating a mapping for Anaplan to another data target.
- Navigate to the Data Integration page
- Click New.. and select Mapping from the Mappings tab
- Click the Source Object and in the Source tab, select the Connection and set the Source Type
- Click "Select" to choose the table to map
- In the Fields tab, select the fields from the Anaplan table to map
- Click the Target object and configure the Target source, table and fields. In the Field Mapping tab, map the source fields to the target fields.
With the mapping configured, you are ready to start integrating live Anaplan data with any of the supported connections in Informatica Cloud. Download a free, 30-day trial of the CData JDBC Driver for Anaplan and start working with your live Anaplan data in Informatica Cloud today.