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
Not finding legs in call logs
Tags: sdk
Sep 28, 2018 at 9:21am   •   1 replies  •  0 likes
david-southern

I have the following code for extracting call log records from the api:


RingCentral.ExtensionCallLogResponse response;

mRecordList = new List<RingCentral.CallLogRecord>();


int pageNum = 0;


RingCentral.RestClient rc = new RingCentral.RestClient("fakeKey", "fakeSecret", true);


await rc.Authorize("fakeNumber", "fakeExt", "fakePassword");


do

{


pageNum++;

response = await rc.Restapi().Account("~").CallLog().List(new { dateFrom = fromDate, dateTo = toDate, page = pageNum.ToString(), perPage = recordsPerPage, detailed = "true" });

mRecordList.AddRange(response.records);

System.Threading.Thread.Sleep(7000);

} while (response.navigation.nextPage != null);


This returns 6391 records, but none of them have any leg info. Now I know it's possible that they don't have any leg info, but I just want to make sure the code I have above will return leg info.


Thanks!

1 Answer
answered on Sep 28, 2018 at 9:45am  
Aha!  Found the problem.  detailed = "true" should be view = "Detailed" - and it's important that Detailed be capitalized.

 1



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