question

Nitika D avatar image
Nitika D asked Leonard leWang Deactivated edited

Archive call logs

I am new to coding and need help in archiving call logs .Please guide me with c# code to automatically archive call logs older than 3 days .

call logs
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

Phong Vu avatar image
Phong Vu answered

Check out this dev manual documentation. Browse to the sample code section and choose the C# tab.

If you don't know how to get the RingCentral .Net SDK, see the quick start where it covers that part.

Now to define the period of time you want to read the call log, specify the dateFrom and dateTo as an example below:

parameters.dateFrom = "2019-08-05T00:00:00.000Z" 
parameters.dateTo = "2019-08-08T23:59:59.999Z" 

If you don't specify the dateTo parameter, it will take the current date and time.

Extra miles. You can implement call log synchronization to archive call log data using the Call Log Sync API as well.

Check out this blog, it is about archiving the message store (SMS, MMS, Fax and Voicemail). But you can have an idea how to use the sync API.

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