0
votes
1answer
73 views

How to get list items same values in each two list items to display in 3rd list using with caml query

How can I write one caml query to get items from two lists joined on empid? will you please anybody give me help with suitable caml query or even otherwise possible code. Note: There is no lookup ...
0
votes
1answer
241 views

linq query for lookup list column error - query uses unsupported elements

I'm trying to return the list item ID (s.ID), and the ID of a lookup column (s.VendorID). I get the following error: The query uses unsupported elements, such as references to more than one list, ...
0
votes
0answers
79 views

get users from list via linq

I have a list with a column of type 'Person or Group'. In my case it is people only (name with presence as the display field). The column can have multiple users. I am trying to retrieve that list of ...
0
votes
1answer
50 views

DirectoryNotFoundException when trying to read Picture Library using Linq

I am trying to read a picture library named "ImageLibrary" as follows: SPList list = web.GetList("ImageLibrary"); But I am getting following error: DirectoryNotFoundException How do I read ...
1
vote
1answer
483 views

Is it possible in LINQ to SharePoint

I have a task to make a WSP, which should provide definitions of custom list and library, but not instances. List definition has a lookup column to library item <Field ...
0
votes
1answer
2k views

Getting items from rows 4-8 in a Sharepoint list using CAML query?

Here is the code Im using to retrieve the first 4 most upcoming announcements from the OOTB announcements list in sharepoint: How do I modify this to retrieve the next 4 (5,6,7 and 8) most upcoming ...
1
vote
1answer
914 views

An item with the same key has already been added when trying to recover my list using Linq (SPMetal)

I have a problem with my application SharePoint. The problem is that I added a List in my SharePoint site (directly in SharePoint), then I used SPMetal LINQ to generate a File in which I can recover ...
0
votes
1answer
260 views

EntityList empty when querying items provisioned in List Instance XML

I'm not sure if I have found a bug here or if I'm doing something wrong. I have a list which I provision using a SPI in Visual Studio, in the List Instance XML I provision some default list items ...
1
vote
1answer
125 views

What is the best way to access sharepoint lists?

In the past I tried with linq using spmetal, but after the project was almost finished I realized of some limitations, this tool does not generate fields for creation date, modified date, also it ...
2
votes
1answer
419 views

merge two lists with WCF Services and Linq

How do I merge two lists when using REST services? You can't use union with linq and dataservicequery so I'm not sure where to go. The following doesn't work with dataservicequery... var docQuery = ...
0
votes
2answers
377 views

How can i access sharepoint using LINQ instead of CAML?

is there any way to access Sharepoint lists via LINQ instead of CaML?