i have two list in sharepoint like:
LIST1:ID,Title,Visitor,Website
LIST2:ID,Title,MaxVisitor
i want to write this in camlex or caml query but i don't know how
select from sum(LIST1.Visitor)>List2.MaxVisitor groupby LIST1.Website
You can use SPSiteDataQuery for querying multiple list ,
Related
We have a SharePoint site that users will create item records as a new subsite with a template. On this template is a list, we'll call List A. There are 90+ of these subsites with the same 'List A' name.
On List A there is a "Status" field with the "Closed" choice. I am looking to make a report (preferably in Table/Excel form) that will query all the 'List A' lists that have a Status field set to 'Closed'.
I am looking at OData queries but I'm very new to Power BI. Any help would be much appreciated!
Thanks!
I would build a query based on one subsite example, using the built-in connector for a SharePoint Online List. I would apply the Status = Closed filter. Then I would replace the hard-coded Site with a Query Parameter.
Now you can right-click that Query and choose Create Function.
Next you need a Query that lists your 90+ subsites with their URL. There might be an OData query that can do this or you might need to maintain a manual list e.g. in Excel. Then you can add a Custom column that calls the Query Function (created above) and passes each subsite URL.
Expand that table-type Custom column and the result will be the filtered rows from all the subsites.
I have a site with a number of lists that are related through various lookup columns. I would like to create a page that shows items (from the different lists) that have a certain lookup value in common. What are the possibilities for this kind of thing in sharepoint 2013.
I guess I'm looking for something similar to a database select: "select * from listA, listB, listC where columnValue = "givenValue";"
Regards!
Have a look at the content query webpart
https://support.office.com/en-us/article/When-to-use-the-Content-Query-Web-Part-or-the-Content-Search-Web-Part-in-SharePoint-346a0f48-38de-409b-8a58-3bdca1768929
This should still be valid for SP2013:
https://support.office.com/en-us/article/Display-data-from-multiple-lists-with-the-Content-Query-Web-Part-d560f477-8fc1-4258-aeb2-70aa932e07da
i'm using the sharepoint search result webpart and want to get a random result.
with REST it's working with query parameter sortlist=[random:seed=1]:ascending but i want to use the search webpart. It seems it's not possible to use sortlist there?
I'm trying to aggregate results from different list types. Using Join feature in Sharepoint designer won't cut it. What I want to achieve is eq. to in T-SQL "Select x AS y".
For example - The column "Title" doesn't exist in one list type but the column "Name" does.
What I want to do is as I would in SQL: "Select Name as Title"
I've tried looking into CAML but no luck there.
Much appreciated
V
You could achieve this using the Camelot .NET Connector for SharePoint, available at http://www.bendsoft.com/net-sharepoint-connector/
When using it you may question your SharePoint lists and document libraries as if they where ordinary SQL tables.
Ie.
SELECT LinkTitle as Title, CreatedDate as `Created Date`, ID as `List item id` FROM WhatEverListYouLike WHERE ID > 10
There are also predefined functions to handle most common operations of documents like FileUpload and FileDownload. These are covered in the documentation - http://docs.bendsoft.com/camelot-net-connector/latest/procedures/
I have one search page.
page have 6 textboxes as a search criteria which user should fill.
According to those 6 textboxes I want to make search on Document library.
The sql query for same will be like this =>
SELECT * FROM SOMETABLE WHERE NAME="xyz" or CLIENT="abc" or ADDRESS="lmn" or ROLE="wxy" or STATUS="nop" or AUTHOR="efg";
Please tell me how to write CAML Query for this.
Please share if you have any link to understand nested caml query.
I asked a similar question with more parameters. The question with an answer is here: CAML query with nested AND's and OR's for multiple fields