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/
Related
The 2.0 implementation offers two view modes.
How can I customise the query to change the view mode manually?
I'm on business version of Excel, so I have no access to the SharePoint connector shown above.
I use OData connector, of which this is the resulting query:
let
Source = OData.Feed("https://company.sharepoint.com/sites/yoursite/_vti_bin/ListData.svc", null, [Implementation="2.0"]),
List1 = Source{[Name="List1",Signature="table"]}[Data]
in
List1
Side question: would this reduce the amount of data loaded or is it the same as using Power Query to remove the extra columns?
I know Power Query supports query folding and that it should work with SharePoint, but it seems to perform a lot better in PowerApps for example, where I am able to select the View Mode.
I've finally found the answer on biinsight.com, full credit to the author.
We can utilise OData query to make SharePoint filter the list before serving by specifying the list and (optionally) any filtering query like this:
.../_vti_bin/ListData.svc/YourList?$select=ID,Name,Age&$filter=Age gt 26
Which returns only columns ID,Name & Age and records where Age is greater than 26.
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 have a document library where i have columns called Title and Category(is a lookup field) and User.Also,I have a list where i am just storing categories. I would like to join both document library and list so that i can dispaly all categories and the documents associated with it. once i get everything i would like to perform filtering so that it dispalys only selected user's documents.The displaying of the documents is working fine but not filtering. My questions is CAn we perform join between doc library and list? Plesae help me.
Thanks
The content query web part (CQWP)is probably the easiest way to do this without code. Since you only have one field in your lookup (categories) you don't need to do a join as SharePoint stores the lookup value in the Document Library. You will need to edit your CQWP to add this field, there is a good tutorial on doing this here. It also explains how to filter your CQWP.
Finally you will need to clean up your lookup field as SharePoint will store the value like this: 1;#Category1.
The CQWP uses XSLT to display the results so in your case you probably don't want to show 1;#Category1 you probably only want to show Category1. You can use the following XSLT to accomplish this:
<xsl:value-of select="substring-after(#Name_Of_Your_Lookup,'#')"></xsl:value-of>
In sharepoint 2007 , i have created three list
category
authors
books
all book belong to a author and all author belong to a category. i have done this by creating a column in authors list which has a lookup to select categories. so that while creating new item in the list author we can select category . similar thing is done in books list for authors.
i have created a web part page which displays all three list one below other.
how can i perform filtering such in this page such that if i select any category it shows all authors and books under it ?
You'll need to use CAML to query your list. There are several samples here: Writing CAML Queries For Retrieving List Items from a SharePoint List. You'll also need to download U2U CAML Query Builder for testing proposes.