Basic Authentication Talend Workflow Example
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.
This is the object that will request, from our API server, the list of imports in your model. e.g. "https://api.anaplan.com/2/0/workspaces/8a81b09e5d6c38eb015da37c3b9d7000/models/C53C281DB25945F9BC0057CC5FF5BA12/imports/" You can change this to exports, processes, etc. to fetch the necessary details for your integration task. This request will return a JSON array of all the imports in the model, and their metadata. You can use this to create a mapping of names to IDs, so you can work by name.
Categories
- All Categories
- 2.3K Anaplan Community
- Academy
- Anaplan Talent Builder
- Model Design Course
- The Anaplan Way
- Archive
- 2 Idea exchange
- 62 Enterprise Scale
- 1.1K Extensibility
- 21 Intelligence
- 1.6K Planning & Modeling
- 331 Security
- Community Connections
- Connections
- Experiences
- Groups
- Personas
- Employees
- CS Toolkit
- Customer Care Center
- Forums
- Academy & Training
- Community Feedback & Updates
- Japan
- Anaplan Community Japan
- Anaplan Community Japan Knowledge Base
- HyperCare Japan
- JP-Central
- Support-Japanese
- Partners
- Partner Leadership Council
- Partner Product Council
- 724 Platform
- Anapedia
- App Hub
- Centers Of Excellence
- Extensions
- Planual
- Platform Updates
- 724 User Experience
- Profile Builder
- Resources
- Anaplan Advocates
- Anaplan Live!
- Community
- Community Advancement
- Community Connections
- Partner Program
- The Official Master Anaplanner Program
- Videos
- Welcome to the Anaplan Community!
- Success Central
- Support
- Case Portal Link
- Common Support Questions
- HyperCare Redirect
- Known Issues and Workarounds
- Support test page
- SupportFAQ
- Survey
- 2 Training Day Takeaways