Get-KFNormalizedCaml [-Query] <string> [-ThrowErrors[:$true]]
>= kenaflow 1.0.0
If you want to work directly with CAML - the SharePoint query language - then you need to keep in mind that the
Or tags must each have exactly two suitable sub-objects.
Not valid would be:
...because here is just one
Eq under ´And´.
Also not valid is:
...because here the
Or-Tag has three subnodes (
This kind of problems occur, if CAML is built dynamically.
This is the CAML string to be corrected.
This is a default parameter for all kenaflow cmdlets. If set to
$true(default!) the engine will pass exception within the cmdlet to the script for further handling.
Cls; Import-Module "C:\Program Files\kenaflow.runtime.dll" Start-KFSharePointModule -SharePointVersion sp2013 Get-KFNormalizedCaml -Query "<Where><And><Eq>…</Eq></And></Where>" Get-KFNormalizedCaml "<Where><Or><Eq>..</Eq><Gt>..</Gt><Lt>..</Lt></Or></Where>"