Converting ListItemCollection to DataTable in Client side object model for SP Online

Copper Contributor

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. 

0 Replies