Skip to main content
New Participant
March 28, 2020
Question

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

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
    Community Manager
    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