question

global-it-api7890 avatar image
global-it-api7890 asked Tyler Liu answered

Call logs ExtensionCallLogResponse to datatable

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

sdk
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Tyler Liu avatar image
Tyler Liu answered
Hi,

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

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys