Forum Discussion
Richard Collins
Apr 23, 2018Copper Contributor
Can a variable be coded in CAML powershell for Sharepoint online?
$Items = Get-PNPListItem -List 'ListBB' -Query <View><Query><Where><Eq><FieldRef Name='fueltype'/><Value Type='Text'>$dresda</Value></Eq></Where></Query></View> Is there a way that $dresda field ...
Apr 23, 2018
Sure...this is for OnPremises, but you can grab the portion of code you need: https://gallery.technet.microsoft.com/office/How-to-do-a-CAML-Query-6f5260cf
Richard Collins
Apr 26, 2018Copper Contributor
Hi Juan. Sorry for the delay in replying.
I have discovered that CAML queries don't work on >5K big SharePoint lists so looking at other options..
Will try when I get a chance.