-4

I need to query on AllItems view for getting items. How can I do this? CAML maybee?

3 Answers 3

1

Unfortunately my reputation is not enough for commenting...

If you want only filter your table, then use the different Filter Webparts in Sharepoint. There are different Filters for input fields, GET-Parameters, etc.

But, you can't use any filter for any lists. You have to try it.

I hope, that helps you...

1

Get the CAML query of ANY VIEW by following PowerShell

$spWeb = Get-SPWeb -Identity "Site URL goes here";
$spList = $spWeb.Lists["List Name"];
$spView = $spList.Views["View Name"];
$spView.Query | Out-File "Path with file name"

or

Make a GET request to following end-point using any rest client

http://Site URL/_api/Web/Lists/getbytitle('List Name')/Views/getbytitle('View Name')?$select=ViewQuery

Learn more

0

I don't really understand the question, but if you want to query a list for items in specific columns depending on different circumstances, you should use CAMLQuery

U2U CAMLQuery helper is a nice tool to get started.

Not the answer you're looking for? Browse other questions tagged or ask your own question.