Call logs ExtensionCallLogResponse to datatable

  • 1
  • Question
  • Updated 4 weeks ago
Hello All,
I am using C# language and using the ringcentrals c# nuget package.
I am currently retuning Inbound call using:
ExtensionCallLogResponse callLogsInBound = await mainAccount.CallLog().List(new { dateFrom = monday.ToString("yyyy-MM-dd"), dateTo = monday.AddDays(5), view = "Detailed", direction = "Inbound" });

I can also get the JSON string using:
string json = JsonConvert.SerializeObject(callLogsInBound, Formatting.Indented);
How can I convert either the json string or the callLogsInBound to a Datatable?
Thanks,
KS
Photo of Global IT API

Global IT API

  • 90 Points 75 badge 2x thumb

Posted 4 weeks ago

  • 1
Photo of Tyler Long

Tyler Long, Official Rep

  • 7,008 Points 5k badge 2x thumb
Hi,

The callLogsInBound object is just a normal C# object.  So maybe you can google for "C# convert object to datatable" ?