How to integrate from Anaplan to ETRM through API.

Options

Can you please help me on how to integrate data from Anaplan to ETRM, with API's, or if I can get API's script by which I can change workspace and model id and use that script.

Tagged:

Answers

  • @Vicky_Kapri,

    Script for Anaplan API:

    Here's a simplified example of a script using Python with the requests library to extract data from Anaplan. Replace workspace_id, model_id, and api_token with your actual values:

    import requests

    Anaplan API URL format

    url = "https://api.anaplan.com/2/0/workspaces/{workspace_id}/models/{model_id}/exports"

    Headers with API token

    headers = {
    "Authorization": "AnaplanAuthToken {api_token}",
    "Content-Type": "application/json",
    }

    Make API request

    response = requests.post(url, headers=headers)

    Print API response

    print(response.json())

  • instead of Authtoken, can I use my username and password as well? Or I have to buy that token(certificate) from Anaplan?

  • @Dikshant , with the help of API, anaplan will directly integrate with other tool, or it will be like first export csv file then loading of that csv file into ETRM tool.