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 do we filter a list of phone numbers by which can send an SMS?
Tags: sms and text messaging, permissions, rest api
Jun 4, 2019 at 5:42pm   •   1 replies  •  0 likes
Matt Kakuk

We have integrated SMS API with Zoho CRM and have an approved app in the app store: https://www.ringcentral.com/apps/zoho-crm-ringcentral-sms-texting-extension

It works great, but we are seeing issues with certain accounts. We need to be able to filter out numbers that cannot send SMS. We used to filter for SMS Enabled type, but we were told other number can text also that have different types. This makes it very confusing as now we list all numbers even the ones can not text. As a result, customers are getting a number of error messages. We also not sure why some users can not text, they get the error:

In order to call this API endpoint for another extension, user needs to have [OutboundSMS] permission granted with extended scope

Can you point me in the right direction? Our app is getting more popular, but we need to perfect it.

1 Answer
answered on Jun 5, 2019 at 1:51pm  

Hi Matt,

First of all, you make a call to the phone-number endpoint to read all phone numbers of an extension then check if they have SMS cap.

"features":[

"SmsSender",

"InternationalSmsSender"

],

Some time ago I identified that the permission error was misleading and the cause was because of a user tries to send SMS using a number which does not belong to that user. However, with my new test, I always get the correct error message "

Parameter [from] value [+1650XXXXXXX] is invalid [Cannot find the phone number which belongs to user]"

Could you please double check the numbers which failed to send SMS to see if it has one of the features mentioned above?


 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