There is a small, but growing, user base interesting in integrating with Anaplan using Talend. Previously, we shared (upon request) a sample workflow, with the launch of our latest API version, I've been working to update this demo.
Today, I'm sharing a very simple workflow, which fetches a list of imports from your Anaplan model. This demo is intended to show how how to fetch an auth token from our authentication server, using Basic authentication, and save that for use with our API server. Please note, if your integration takes more than 30 minutes, you will need to create a subroutine to refresh and save the new token for subsequent requests.
When working with this demo, the first step will be to edit the t_JavaFlex_1 object, where you will enter your email address and Anaplan password. This object creates a string, which is the Base64 encoded value of your email address and password, and updates the authHeader variable in the AuthDetails context.
The next component requests a token from our auth server, using your username and password, then updates the authToken variable in the AuthDetails context for later use. The final component is the one in which you actually communicate with our API server. Here, in the tRest_2 object, you will update the URL with your own workspace and model IDs.