Jan 10 2022 08:15 PM - edited Jan 10 2022 08:17 PM
Is there any way to convert ListItemCollection to a datatable like we could do in Sharepoint server side code using:
SPListItemCollection listcol= listname.GetItems(query);
DataTable datatableOne= new DataTable();
if (listcol!= null && listcol.Count > 0)
{
datatableOne= listcol.GetDataTable();
}
Is there any GetDataTable method for CSOM because I am unable to find one in documentation for SP Online.
Help would be much appreciated.