question

Matt Kakuk avatar image
Matt Kakuk asked ·

How do we filter a list of phone numbers by which can send an SMS?

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.

apismspermissionszoho
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

· Write an Answer
Phong Vu avatar image
Phong Vu answered ·

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?

Share
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.