-
I have code where I've performed a complex query on a list to get all the data I need about it. I need the model data to remain available, but I also need to call GetUserEffectivePermissionsAsync( ) for the list. However currently this wipes the key model data (e.g. list.Fields.AsRequested()). While I can issue a second call to PnPContext.Web.GetListByIdAsync( ) this means another network call that shouldn't be necessary as I already know the list ID, and don't need any further information about the list. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
@wizofaus : I think there are some options, let me explore and report back |
Beta Was this translation helpful? Give feedback.
-
Ok, thanks, though I still feel it's useful to be able to obtain a clean List instance for a given Guid without having to issue a network call.
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: Bert Jansen ***@***.***>
Sent: Wednesday, March 13, 2024 8:29:51 PM
To: pnp/pnpcore ***@***.***>
Cc: wizofaus ***@***.***>; Mention ***@***.***>
Subject: Re: [pnp/pnpcore] How to call GetUserEffectivePermissionsAsync on library without wiping model data? (Discussion #1416)
@wizofaus<https://github.com/wizofaus> : I've added a fix for this (see 1280e57<1280e57>). Will be part of next nightly
—
Reply to this email directly, view it on GitHub<#1416 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABI5UAOZFTQO3V6TTTVMTWLYYAMA7AVCNFSM6AAAAABERKSIAOVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DONZQGI4DO>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
@wizofaus : I've added a fix for this (see 1280e57). Will be part of next nightly