You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have working code right now that obtains a Drive instance (in fact it's a SharePoint document library in case that makes any difference. The code looks like this:
I don't have the Graph ID's for the site or the document library "ahead of time"; all I have is the "connection string" and the doc library name. As mentioned the code works (except that the Filter operation doesn't appear to have any effect, so I do a manual LinQ .Where(d => d.Name == "MyDocLib") after the fact).
The two network I/Os bother me. I'd like to do everything in one network I/O. It seems logical that you should be able to do the following:
but when I try executing this I get a variation of "bad url" in an exception.
Is there a way to avoid that second network I/O based on only the "connection string" and the document library name? I have nowhere to store the Graph site ID and document library name in my application at the moment, so I can't cache those values from one request to another.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have working code right now that obtains a
Drive
instance (in fact it's a SharePoint document library in case that makes any difference. The code looks like this:I don't have the Graph ID's for the site or the document library "ahead of time"; all I have is the "connection string" and the doc library name. As mentioned the code works (except that the
Filter
operation doesn't appear to have any effect, so I do a manual LinQ.Where(d => d.Name == "MyDocLib")
after the fact).The two network I/Os bother me. I'd like to do everything in one network I/O. It seems logical that you should be able to do the following:
but when I try executing this I get a variation of "bad url" in an exception.
Is there a way to avoid that second network I/O based on only the "connection string" and the document library name? I have nowhere to store the Graph site ID and document library name in my application at the moment, so I can't cache those values from one request to another.
Beta Was this translation helpful? Give feedback.
All reactions