News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
C# Calllog API return rows limited
Tags: rest api
Jul 12, 2019 at 11:45am   •   1 replies  •  0 likes
Chetan Nayak

I am using the RingCentral.net C CallLog API with admin account. I do get call logs for all users but only getting 100 rows. I tried different dates in datefrom param. I do see data for the different dates but only 100 rows each time. is there page setting that will give me all data? Do i need to loop through the pages to get all data for the 90 days? There is no mention in the documentation other than to set dateFrom. Thanks

Here's the code

RestClient rc = new RestClient("client_id", "client_secret", true);

await rc.Authorize("Admin phone", "admin ext id", "password");

var parameters = new ReadCompanyCallLogParameters();

parameters.view = "Detailed";

parameters.dateFrom = "2019-06-01T00:00:00.000Z";

parameters.dateTo = "2019-06-10T00:00:00.000Z";


var resp = await rc.Restapi().Account().CallLog().List(parameters);

string json = JsonConvert.SerializeObject(resp, Formatting.Indented);

var exportFileName = @"\\<server>\RingCentral\ProdCallLog" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".json";

File.WriteAllText(exportFileName, json);


1 Answer
answered on Jul 17, 2019 at 3:58am  

You can set the perPage query parameter to the number of rows you want to read. The max number is 1000. Then you can use the paging from the returned response to read next or previous pages.


 0



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us