Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

sharepoint c# get list item query by lookup

CamlQuery camlQuery = new CamlQuery();
camlQuery.ViewXml = "<View><Query><Where><Eq><FieldRef Name='yourColumn' LookupId='TRUE'/><Value Type='Lookup'>123</Value></Eq></Where></Query></View>";
List listByTitle = clientContext.Web.Lists.GetByTitle("YourListName");
ListItemCollection yourListItem = listByTitle.GetItems(camlQuery);

clientContext.Load(yourListItem);
clientContext.ExecuteQuery();
Comment

PREVIOUS NEXT
Code Example
Csharp :: kendo validator tries to validate hidden fields 
Csharp :: c# instance class with ilogger 
Csharp :: ArgumentException: Input Key named: Fire1 is unknown 
Csharp :: c# usermanager update user 
Csharp :: c# centos Regex Username 
Csharp :: int array to frequency dictionary c# 
Csharp :: linq from list c# 
Csharp :: program.cs entity framework 
Csharp :: how to make a block disappear in unity 
Csharp :: C# webclient submit form 
Csharp :: Unity Object rotation along any axis 
Csharp :: cache trong mvc 
Csharp :: change color unity over time 
Csharp :: number to character c# 
Csharp :: c# how to delete all files in directory 
Csharp :: install nuget package for S3 
Csharp :: sort array dotnet 
Csharp :: Reading emails from Gmail in C# 
Csharp :: trhow exception if is null c# 
Csharp :: unity vector3 initialization 
Csharp :: write last line txt file c# 
Csharp :: c# datagridview cell align center 
Csharp :: run a command line from vb.net app 
Csharp :: dataset empty check C# 
Csharp :: C# assigning image location 
Csharp :: how to display a form when a button click c# windows form 
Csharp :: c# multiple exceptions same handler 
Csharp :: c# reverse a string for loop 
Csharp :: create a file in the directory of the exe and write to it c# 
Csharp :: csharp compare characters 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =