Transactional API Tutor

The purpose of this Transactional API Tutor Script based on Python is to facilitate the learning process of Transactional API Calls using the Anaplan Platform. This version contemplates the most common Transactional API calls until November 09, 2020.

Download the Python Script file using the file attachment located to the right of this article. 

Steps to use it:

  1. Make sure the following Python libraries are installed on your environment over Python 3.8.5.
    Tutor_1.png
    Note: Click here to get guidance on how to install Python packages. 
  2. Open the TransactionalAPITutor.py file and change the parameters described below according to your needs. Choose either Username-Password authentication or CA-Certificate-based authentication.
    Tutor_2.png
    1. Username-Password-based authentication parameters:
      Tutor_3.png
      Tutor_4.png

    2. CA-certificate-based authentication parameters:
      Tutor_5.png
      Note: in the case of CA-Certificate-based authentication, make sure that you have the public and private key (.pem) files in place.
      Tutor_6.png
    3. Current date is always used to set the Current Period of the selected model.
      Tutor_7.png
    4. A set of Workspaces and Models accessible by your user or certificate will be presented to you during this Python script runtime so the subsequent Transactional API calls in the same script will be generated dynamically based on those parameters.

Example:

  1. The underlying Anaplan Transactional API Details are shown.
    Tutor_8.png
  2. Choose the correct option according to the underlying Anaplan Transactional API Endpoint.
    Tutor_9.png
  3. Notice the next underlying Transactional API Details based on the previous selection.
    Tutor_10.png
  4. Close that window by clicking on the red x at the top left corner.
  5. Notice the underlying Transactional API Response based on the Transaction API details shown on the previous screenshot.
    Tutor_11.png
  6. Close that window by clicking on the red x at the top left corner and continue the interaction with the API Transactional Tutor according to the script execution.

Feel free to post your feedback and suggestions in the comments below! I am more than happy to hear from you about your experience using the Python-based Transactional API Tutor script.

Additional Reference: Anaplan Integration API V2 Guide and Reference 

The content in this article has not been evaluated for all Anaplan implementations and may not be recommended for your specific situation.
Please consult your internal administrators prior to applying any of the ideas or steps in this article.
Comments

What a great feature! We used to have a WS allowance issues on several workspaces and I always wanted to set up automated monitoring with alert in case some limits are reached.

 

I found a workaround with getting that data from hypercare models though.

Thank you for your feedback on that @Hayk! I do appreciate it.

Contributors
Attachments
Latest Articles
2 weeks ago
User Provisioning
Best Practices
2 weeks ago
by Misbah
Transactional API Tutor
Best Practices
2 weeks ago