SharePoint List CAMLquery filter columns

Hi!

I’m using “Get List Items” inside “Sharepoint application scope”.
Is there an easy way to filter what columns you want to extract from a SharePoint List?
By default you get a lot of useless columns.

Ok, could add Viewfields after query. Still got a lot of unnecessary columns but much more manageable.

<Query>
	<OrderBy>
		<FieldRef Name='ID' Ascending='True'></FieldRef>
	</OrderBy>
	<Where>
			<Eq>
				<FieldRef Name='ListStatus'></FieldRef>
				<Value Type='Text'>New</Value>
			</Eq>
	</Where>
</Query>
<ViewFields>
	<FieldRef Name='Name' />
        <FieldRef Name='Date' />
</ViewFields>
1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.