Replies: 1 comment 1 reply
-
There are various ways to do this, but the easiest os probably: a = Account(...)
my_folder_by_id = SingleFolderQuerySet(account=a, folder=a.root).get(id='AAMkAGV...') The changekey is only necessary if you want to be sure that the folder was not changed in any way since you collected the changekey, which is usually not relevant. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey there!
I've tried looking through the existing issues as well as the documentation but haven't really found what i was looking for.
After exporting a Folders' ID and Changekey (with .id and .changekey), i am trying to fetch/query the Folder Object with those values again.
I have found and tried your suggestion in #1086 with the SingleFolderQuerySet and FolderID here:
folder_src = SingleFolderQuerySet(account=acc,folder=FolderId(id=undo_src[0], changekey=undo_src[1])).resolve()
, however it throws aValueError: Unsupported folder class: FolderId(id='AAMkAGVlNWJmODBiLWJkZGEtNGY5Ny1hOTk2LWJiYzA1YjVjZjVhMwAuAAAAAAAc5jkvEgsCRLJhI62C4TiPAQBuTLQ+kl9fQ7TEKh263i6XAAAAAAFjAAA=', changekey='AQAAABYAAABuTLQ+kl9fQ7TEKh263i6XAAAAAdnL')
I am kinda pulling my hair out on this one so i'd greatly appreciate some pointers!
Beta Was this translation helpful? Give feedback.
All reactions