Skip to main content
Question

Get company call log records last page URI returns the first page URI

  • March 28, 2020
  • 1 reply
  • 313 views

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 reply

PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • 2344 replies
  • March 29, 2020

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


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings