question

it9477 avatar image
it9477 asked ·

How to get department id?

I am trying "Edit Call Queue Members", for this department ID is must. <br>i tried with extension id but not working,
<img src="https://d2r1vs3d9006ap.cloudfront.net/s3_images/1723515/RackMultipart20180409-25616-14kmywf-Capture_inline.PNG?1523273095" title="Image: https://d2r1vs3d9006ap.cloudfront.net/s3_images/1723515/RackMultipart20180409-25616-14kmywf-Capture_inline.PNG?1523273095"><br>{    "errorCode": "EXT-400",    "message": "Not a department extension",    "errors": [      {        "errorCode": "EXT-400",        "message": "Not a department extension"      }    ]  }
topic-default
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
Tyler Liu avatar image
Tyler Liu answered ·
Please try  https://developer.ringcentral.com/api-docs/latest/index.html#!#RefUserPhoneNumbers.html

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

The returned data with tell you which number is a department number. Search '"type" : "Department"' to locate it.


7 comments 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.

Thanks for response Tyler,

i tried the same but department number is not showing!


0 Likes 0 · ·
How many "records" are there?

And could you please try other extension IDs?  /extension/{ extensionId}/phone-number


0 Likes 0 · ·
Only one record and tried for other extensions also.
0 Likes 0 · ·
A department is just a special extension. Get the list of extensions:  https://developer.ringcentral.com/api-docs/latest/index.html#!#RefExtensionList.html

If there is none with type equals "Department" then it simply means there is no department in your account.
0 Likes 0 · ·
Do we able to set department in sandbox?
0 Likes 0 · ·
Show more comments

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.