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
API Get Extension details don't have businessPhone for users
Tags: rest api
Jan 28, 2020 at 1:13pm   •   1 replies  •  0 likes
robert-eckman

I created a C# console application to access the RingCentral API using the RingCentral SDK.

With this application, I am pulling a list of calls, and then I pull a list of users, and I import that stuff into our data warehouse for analysis and reporting.

However, when I pull the user records via the [Get Extension] (https://developers.ringcentral.com/api-reference/User-Settings/readExtension), my list of users don't have phone numbers. They should have a phone number, as most of them have a direct number that their clients can reach them at. How do I go about to get the direct numbers of my users via the API? It seems as if the "businessPhone" attribute is not populated. Even when I test it against my account, it's blank.

It seems to me that I will need to pull the [Get Company Phone Numbers] (https://developers.ringcentral.com/api-reference/Phone-Numbers/listAccountPhoneNumbers) and then match the extension/id to that of the extension/id of my user table to get what I want. Basically more steps that I'll have to build out into my application and in the database... why doesn't the GetExtension pull this information by default??

1 Answer
answered on Jan 28, 2020 at 2:33pm  

After you get a list of extensions, parse the extension id of each extension then call this endpoint to get a list of that extension's phone numbers.

HTTP GET /restapi/v1.0/account/{accountId}/extension/{extensionId}/phone-number

https://github.com/ringcentral/RingCentral.Net/blob/master/samples.md#get-extension-phone-number-list


 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