Answers for "sharepoint c# get list item by lookup csom"

C#
0

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();
Posted by: Guest on April-14-2021

Code answers related to "sharepoint c# get list item by lookup csom"

C# Answers by Framework

Browse Popular Code Answers by Language