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
Why am I getting the error message "MSG-252" FeatureNotAvailable?
Tags: rest api
Jul 24, 2020 at 4:00am   •   3 replies  •  0 likes
Paul Kornetsky

{

"errorCode" : "FeatureNotAvailable",

"message" : "The requested feature is not available",

"errors" : [ {

"errorCode" : "MSG-242",

"message" : "The requested feature is not available"

} ]

}
works well in sandbox mode, but when I changed the mode to production, this error began to appear

3 Answers
answered on Sep 11, 2020 at 2:59pm  

Still can't understand the logic behind all your answers, sometimes you point the user to the dev team and sometimes you provide them with a piece of code to check is they have access to some specific options ....

It will make sense if you put this function in your GUI interface right ?


 0
answered on Jul 24, 2020 at 7:44am  

Use this piece of code to check if the number you use to send SMS has SMS feature. If the number has the SmsSender then something is wrong with the account/extension setting => open a support ticket with your account/extension info. Otherwise, choose a number that has the SMS feature

function check_extensions_phone_number() {
  platform.get('/account/~/extension/~/phone-number')
    .then(function(resp){
      var jsonObj = resp.json()
      for (var record of jsonObj.records){
        if (record.usageType == "DirectNumber"){
          console.log("DirectNumber Found. Check feature")
          console.log(record.features)
          console.log(record.phoneNumber)
          for (var feature of record.features){
            if (feature == "SmsSender"){
              console.log("This number supports SMS: " + record.phoneNumber)
            }
          }
        }
      }
    })
    .catch(function(resp){
      console.log("Something went wrong.")
    })
}

 0
answered on Jul 24, 2020 at 6:52am  

 0
answered on Jul 24, 2020 at 6:33am  

What API did you call?


 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