I want to load all FieldValues for a specific ListItem
ForExample
public ListItem GetItemById(List SPList, int id, string[] fieldNames)
{
using (Ctx)
{
ListItem item = SPList.GetItemById(id);
if (fieldNames != null)
{
foreach (string field in fieldNames)
{
Ctx.Load(item, i => i[field]);
}
}
//Tried below line, doesn't work
//Ctx.Load(item, i => i.FieldValues);
Ctx.ExecuteQuery();
return item;
}
So in above example i am passing the field names to load, however i want all fields to be loaded.