# Invite Zoom Room and using getZoomRoomlist

**URL:** <https://devforum.zoom.us/t/invite-zoom-room-and-using-getzoomroomlist/11866>\
**Category:** Web\
**Created:** [April 7, 2020, 3:06pm UTC](https://devforum.zoom.us/t/invite-zoom-room-and-using-getzoomroomlist/11866 "2020-04-07T15:06:45Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![greg.stanford](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/greg.stanford/32/5209_2.png) [@greg.stanford](https://devforum.zoom.us/u/greg.stanford)\
**Post date:** [April 7, 2020, 3:06pm UTC](https://devforum.zoom.us/t/invite-zoom-room-and-using-getzoomroomlist/11866/1 "2020-04-07T15:06:45Z")

</div>

**Description**  
I am trying to setup a system to invite a Zoom Room into a new meeting. I am trying to get a list of Zoom Rooms available using the function getZoomRoomlist. I get the following error in the console.

**ZoomMtg.getZoomRoomlist is not a function**

I am Using 1.7.4 web SDK version.

I have the following code

```
(function(){
    ZoomMtg.setZoomJSLib('https://source.zoom.us/1.7.4/lib', '/av');
    ZoomMtg.preLoadWasm();
    ZoomMtg.prepareJssdk();
    
    var API_KEY = ' *********************';
    var API_SECRET = ' **************************';

    document.getElementById('join_meeting').addEventListener('click', function(e){
        e.preventDefault();

        var meetConfig = {
            apiKey: API_KEY,
            apiSecret: API_SECRET,
            meetingNumber: parseInt(document.getElementById('meeting_number').value),
            userName: document.getElementById('display_name').value,
            passWord: "",
            leaveUrl: "",
            role: 0
        };

        var signature = ZoomMtg.generateSignature({
            meetingNumber: meetConfig.meetingNumber,
            apiKey: meetConfig.apiKey,
            apiSecret: meetConfig.apiSecret,
            role: meetConfig.role,
            success: function(res){
                console.log(res.result);
            }
        });

        

        ZoomMtg.init({
            leaveUrl: 'https://auth.brane.systems',
            isSupportAV: true,
            success: function () {
                ZoomMtg.getZoomRoomlist({
                    success: function (res) {
                        console.log(res);
                    }
                });
            },
            error: function(res) {
                console.log(res);
            }
        });

    });

})();

```

Am I missing anything here? I am following the API documentation provided. Please guide me.

EDIT: I am using trial version of Zoom Room. Is that something to do with this issue?

---

<div class="post-metadata">

**Author:** ![pmogollon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pmogollon/32/15868_2.png) [@pmogollon](https://devforum.zoom.us/u/pmogollon)\
**Post date:** [April 7, 2020, 3:21pm UTC](https://devforum.zoom.us/t/invite-zoom-room-and-using-getzoomroomlist/11866/2 "2020-04-07T15:21:43Z")

</div>

Hi,

You first need to run ZoomMtg.join() and then on the success callback you can access getZoomRoomlist().

Hope this helps

---

<div class="post-metadata">

**Author:** ![greg.stanford](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/greg.stanford/32/5209_2.png) [@greg.stanford](https://devforum.zoom.us/u/greg.stanford)\
**Post date:** [April 7, 2020, 4:05pm UTC](https://devforum.zoom.us/t/invite-zoom-room-and-using-getzoomroomlist/11866/3 "2020-04-07T16:05:22Z")

</div>

I am host in this use case. I tried to start the meeting with a meeting ID of one of users in our account. I get back an error message ‘The meeting number is not found’ when I try to join the meeting.

EDIT: I did start a meeting with a different from iOS app. Successfully joined that meeting from web SDK. But still gives the same error as specified in the original question.

---

<div class="post-metadata">

**Author:** ![pmogollon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pmogollon/32/15868_2.png) [@pmogollon](https://devforum.zoom.us/u/pmogollon)\
**Post date:** [April 7, 2020, 4:34pm UTC](https://devforum.zoom.us/t/invite-zoom-room-and-using-getzoomroomlist/11866/4 "2020-04-07T16:34:11Z")

</div>

Try calling that method from the console some time after you connected succesfuly. Not sure why it would not be a function.

---

<div class="post-metadata">

**Author:** ![greg.stanford](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/greg.stanford/32/5209_2.png) [@greg.stanford](https://devforum.zoom.us/u/greg.stanford)\
**Post date:** [April 7, 2020, 4:39pm UTC](https://devforum.zoom.us/t/invite-zoom-room-and-using-getzoomroomlist/11866/5 "2020-04-07T16:39:21Z")

</div>

I tried that. I did try to call the method in console after successfully connecting to the meeting. It still says it is not a function. I edited my original question but i will put that information here too. I have trial version of Zoom Room. Do you think that will interfere with this functionality?

---

<div class="post-metadata">

**Author:** ![pmogollon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pmogollon/32/15868_2.png) [@pmogollon](https://devforum.zoom.us/u/pmogollon)\
**Post date:** [April 7, 2020, 4:44pm UTC](https://devforum.zoom.us/t/invite-zoom-room-and-using-getzoomroomlist/11866/6 "2020-04-07T16:44:21Z")

</div>

Thats wierd, probably has something to do with the latest changes in 1.7.4.

We do testing in some trial accounts too and it works without issues.

My best guess is that v1.7.4 is still buggy as we are facing issues to but with join.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 7, 2020, 5:14pm UTC](https://devforum.zoom.us/t/invite-zoom-room-and-using-getzoomroomlist/11866/7 "2020-04-07T17:14:14Z")

</div>

Hey @greg.stanford,

Can you update the code in your post with your most recent code change, calling the `getZoomRoomlist` function after the join function as @pmogollon suggested so I can debug?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![greg.stanford](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/greg.stanford/32/5209_2.png) [@greg.stanford](https://devforum.zoom.us/u/greg.stanford)\
**Post date:** [April 7, 2020, 5:31pm UTC](https://devforum.zoom.us/t/invite-zoom-room-and-using-getzoomroomlist/11866/8 "2020-04-07T17:31:34Z")

</div>

```
(function(){
    ZoomMtg.setZoomJSLib('https://source.zoom.us/1.7.4/lib', '/av');
    ZoomMtg.preLoadWasm();

    ZoomMtg.prepareJssdk();
    
    var API_KEY = ' ****************';
    var API_SECRET = ' ***********************';

    document.getElementById('join_meeting').addEventListener('click', function(e){
        e.preventDefault();

        var meetConfig = {
            apiKey: API_KEY,
            apiSecret: API_SECRET,
            meetingNumber: parseInt(document.getElementById('meeting_number').value),
            userName: document.getElementById('display_name').value,
            passWord: "",
            leaveUrl: "https://zoom.us",
            role: 1
        };

        var signature = ZoomMtg.generateSignature({
            meetingNumber: meetConfig.meetingNumber,
            apiKey: meetConfig.apiKey,
            apiSecret: meetConfig.apiSecret,
            role: meetConfig.role,
            success: function(res){
                console.log(res.result);
            }
        });

        

        ZoomMtg.init({
            leaveUrl: 'https://zoom.us',
            isSupportAV: true,
            success: function () {
                ZoomMtg.join(
                    {
                        meetingNumber: meetConfig.meetingNumber,
                        userName: meetConfig.userName,
                        signature: signature,
                        apiKey: meetConfig.apiKey,
                        userEmail: '',
                        passWord: meetConfig.passWord,
                        success: function(res){
                            ZoomMtg.getZoomRoomlist({
                                 success: function (res) {
                                   console.log(res);
                                 }
                             });
                      
                        },
                        error: function(res) {
                            console.log(res);
                        }
                    }
                );
            },
            error: function(res) {
                console.log(res);
            }
        });

    });

})();
```

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 8, 2020, 5:55am UTC](https://devforum.zoom.us/t/invite-zoom-room-and-using-getzoomroomlist/11866/10 "2020-04-08T05:55:35Z")

</div>

Hey @greg.stanford,

I was able to reproduce the issue.

We are looking into it and will get back to you. (ZOOM-150263)

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [May 29, 2020, 6:28pm UTC](https://devforum.zoom.us/t/invite-zoom-room-and-using-getzoomroomlist/11866/11 "2020-05-29T18:28:11Z")

</div>

Hey @greg.stanford,

After speaking with our Web SDK engineers, the `getZoomRoomList` is deprecated and no longer supported. We have updated the docs.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 9:37pm UTC](https://devforum.zoom.us/t/invite-zoom-room-and-using-getzoomroomlist/11866/12 "2020-08-21T21:37:40Z")

</div>

Closed on August 21, 2020, 9:37pm UTC


