EnsurePropertiesAsync() Doesn't Appear to Always Load Properties (like Folder.Exists) #1233
Replies: 2 comments
-
Even doing this to do a fresh request to get ALL folder properties still results in folder = await folder.GetAsync(f => f.All); |
Beta Was this translation helpful? Give feedback.
0 replies
-
@jansenbe Do you know of an alternative example to traverse up the folder hierarchy of items to get the first one containing metadata? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I think maybe this is a bug? Given a folder, I am trying to traverse up to the first parent folder containing a value in the ProjectNumber field and then return that set of fields from this method. This works sometimes perfectly fine. But when you have lets say a folder structure like Folder A > Folder B (Has a ProjectNumber) > Folder C (No ProjectNumber) > Folder D (folder passed into this method) then it will fail with an exception on
folder.Exists
with "Property Exists was not yet loaded" when I am ensuring the Exists property has already been loaded.Beta Was this translation helpful? Give feedback.
All reactions