question

ryan-barnes15302 avatar image
ryan-barnes15302 asked ryan-barnes15302 commented

/account/~/directory/entries not returning IVR Menus

Attempting to use the RestAPI's to get all the company directory. We have ~50 IVR Menus set up but their details are not extracted when calling /account/~/directory/entries

ivrrestapidirectory
1 |1500 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.

Phong Vu avatar image
Phong Vu answered

To list your company IVR menus, call the extension API with the "type" filter set to "IvrMenu". Here is the sample code in Node Js

async function list_ivr_menu(){
  try{
    var params = {
      type: ["IvrMenu"]
    }
    var resp = await platform.get('/restapi/v1.0/account/~/extension', params)
    var jsonObj = await resp.json()
    for (var record of jsonObj.records)
        console.log(JSON.stringify(record))
  }catch(e){
    console.log(e.message)
  }
}


1 |1500 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.

ryan-barnes15302 avatar image
ryan-barnes15302 answered ryan-barnes15302 commented

Thanks for your reply @Phong Vu. I have tried this and it didn't work. The resulting dataset is still empty.

I am running against production as well.

8 comments
1 |1500 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.

What is your account main company number?

0 Likes 0 ·

(02) 9053 8501

0 Likes 0 ·

Can't find your account. Is this the account's name "Elgas Limited"?

0 Likes 0 ·
Show more comments
Show more comments

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys