Skip to content
Discussion options

You must be logged in to vote

In my current dev environment, TM1 returns the index implicitly. So for me, this works:

with TM1Service(**tm1_params) as tm1:
    elements = tm1.elements.get_elements("Account", "Account")
    for element in elements:
        print(element.name, element.index)

Feel free to open a PR to request the index in the URL explicitly. Explicit is better than implicit :)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Ge-Huber
Comment options

Answer selected by Ge-Huber
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants