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
Get company call log records last page URI returns the first page URI
Tags: rest api
Mar 28, 2020 at 12:31pm   •   1 replies  •  0 likes
Chris Carrillo

I am referencing this link and using the RingCentral .Net SDK. After getting my response from the request, I try to access the navigation.lastPage.uri value and I get the navigation.firstPage.uri value.

This is what my params look like:

ReadCompanyCallLogParameters companyCallLogParams = new ReadCompanyCallLogParameters
{
    dateFrom = ((DateTime) SqlDateTime.MinValue).ToString("yyyy-MM-ddTHH:mm:sssZ"),
    page = 1,
    perPage = 1000,
    view = "Detailed"
};
AccountCallLogResponse response = _client.Restapi().Account().CallLog().List(companyCallLogParams);

Is this a mistake or am I missing something? I know that my response should have many pages of records but it is returning the first page's value as the last page's value. Could the name of this be confused with navigation.previousPage.uri?

I appreciate the time and help!

1 Answer
answered on Mar 29, 2020 at 10:04am  

I doubt that the dateFrom you specified in your call was a recent date so it would return all records in a single call.

Can you do a quick test with smaller page? Let's say set the perPage= 50

Let me know


 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