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
How can I fetch external number CALL & SMS log in RingCentral API? C# & RingCentral.Net
Tags: sdk
Oct 20, 2022 at 12:04pm   •   1 replies  •  0 likes
pritesh gondalia

How can I fetch external number CALL & SMS log in RingCentral API? C# & RingCentral.Net


I am using a test account as a Developer admin

I am using the below code to get the call logs for all users

Now I am facing an issue for the below case

I am doing text(SMS) & call the phone number which is outside the ring central

I am using that number as my private number

But I am not getting log for SMS and Call to that end number which I am using from my cell phone for calling, message, and any other purpose

//Get all call logs in single list variables
ReadCompanyCallLogParameters readCompanyCallLogParameters = new ReadCompanyCallLogParameters
{
    direction = new[] { "Inbound", "Outbound" },
    type = new[] { "Voice" },
    view = "Simple",
    dateFrom = dateFrom,
    dateTo = dateTo,
};

_logger.LogDebug("GetAllCallLogs In");
AccountCallLogResponse callList = await rc.Restapi().Account(accountId).CallLog().List(readCompanyCallLogParameters);


1 Answer
answered on Oct 21, 2022 at 7:17am  

I don't know how you made the call and what you actually got from your call log. But each call record should contain the "from" and "to" data.

"to" : {
      "phoneNumber" : "+16505556678"
    },
"from" : {
      "phoneNumber" : "+18552001907",
      "name" : "John Smith"
}

For text messages, you have to read using the /message-store API, not the /call-log API. And remember that, there is no account level API to read the message store of all extensions. You have to detect the extension id and read one-by-one using the extension id.


 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