Automate current date import using Power Automate
As you all know, Anaplan cannot display the current time from a function, so it needs to be imported into a module by an import action. As described here it can be done via Python: Import and automate current date import to Anaplan. I would like to to show you an easier way of doing it when your organization has access to Microsoft Power Automate.
For starters, create a module in Anaplan for loading the current time. In this case it is a module with only one line item formatted as text:
After creating this module, use Python (see @chase.hippen best practice article) or Postman to get the lineitem id.
Now you can setup a Power Automate flow. If you choose a scheduled power flow the first step is already added (Run flows on a schedule in Power Automate - Power Automate | Microsoft Docs). The next step is getting the current date and time. You can use the variable step in Power Automate:
The next step is getting the authorization token. You can use the HTTP action for this (this is a premium action, so you can only use it when you have premium): How to get started with HTTP requests in Power Automate - Microsoft Tech Community
Now you only need to get the token from the response in a Parse JSON action and use the token in the API call for writing the data to your module:
And there you go:
Thanks for reading, and please contact me if you have any further questions.
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