cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1207
Views
0
Helpful
5
Replies

How to understand the meetingRoomInformation from meeting:started Wbhk

sandiban
Cisco Employee
Cisco Employee

Joe McQueenWe built an integration with PagerDuty to receive events and auto populate the spaces based on the people involved in the pager duty response function. As a part of this, we also want to update the PagerDuty ticket with the meeting information. What I've presented is using the new space meetings option (Using a host account for whoever clicks "Meet"). What options are there to identify that action so we can update PagerDuty with the meeting information as well? Is a Meeting Start Webhook related to a space meeting or are those generic to the host?
Trying to figure out how to take the meeting start action and update PagerDuty conference info automatically.

Janos BenyovszkiJoe McQueen if you create a meetings:started webhook, it should trigger, when you click on Meet in the Webex client if this is what you are asking.

Joe McQueenThat I understand, but I'm trying to understand if I can see what room that was started from. I can test this, but looking to see if there was any thought overall towards how we can relate meetings to spaces with automation.

5 Replies 5

Joseph McQueen
Level 1
Level 1

I'm trying this concept a little differently now. I'm trying to search for active meetings tied to the RoomId since that's now a parameter. I have an active meeting up that I launched from the space, but I cannot search for it via the MeetingID nor the RoomId.

Request

https://webexapis.com/v1/meetings?roomId=Y2lzY29zcGFyazovL3VzL1JPT00vYTBhMzhjMjAtNjc1NC0xMWVkLTg0NGMtMDdmYzliNmM2NWUw

 

Response:

{ "items": [])

 

Also attempted to search by just the meeting ID which works, but the Room ID in the ListMeetings API doesn't.

 

When using roomID it will only returned scheduled details for space meetings. There is an open feature enhancement to add support for inProgress and ended space meetings but it's currently in backlog and there is no defined ETA at this time.

That's unfortunate as getting Webhooks for this would require me to check
all meetings started, so I was going to try to just check for the active
meeting and update my details from it.

Although, now I'm looking and can see I can scope the Webhook down to only
get ones from the rooms I want using the "filter". However, the next issue
is I don't believe the bot can create this with its object and would
require an oauth token, which increases complexity in how the bot operates.
I will test the previous recommendation now to see what I can do.

One other note, the roomId filter isn't available on the meetings Webhook
currently, which would be required to not need to parse every single
meeting started event.

{ "message": "POST failed: HTTP/1.1 400 Bad Request (url =
https://webhook-engine-a.wbx2.com/webhook-engine/api/v1/webhooks,
request/response TrackingId =
WEBEX-DEV-PORTAL_5ca26d79-651b-404e-9e84-a0b4cce4e524_83, error = 'Only id,
meetingNumber, meetingType, state, hostEmail, hostUserId, and siteUrl
filters supported on meetings resource')", "trackingId":
"WEBEX-DEV-PORTAL_5ca26d79-651b-404e-9e84-a0b4cce4e524_83" }

sandiban
Cisco Employee
Cisco Employee

Hi Joe,
If you're checking the Webhook response as Janos has mentioned to go with a meeting:started Webhook, then you'll not find the roomId details of the meeting from which the meeting was actually started.
So, for a meeting:started webhook, webhook's response on successful meeting start looks like below - 

{
  "id": "Y2lzY29zcGFyazovL3VybjpURUFNOnVzLXdlc3QtMl9yL1dFQkhPT0svMDMzNmE0...",
  "name": "Webhook meeting check",
  "targetUrl": "https://webhook.site/564fb9f8-cee4-40da...",
  "resource": "meetings",
  "event": "started",
  "orgId": "Y2lzY29zcGFyazovL3VzL09SR0FOSVpBVElPTi9jNDI0NDcwZi0yNmI0L...",
  "createdBy": "Y2lzY29zcGFyazovL3VzL1BFT1BMRS9hZjdmMzQ1Ni1lMmVjLTRlNjI...",
  "appId": "Y2lzY29zcGFyazovL3VzL0FQUExJQ0FUSU9OL0NmMzkyNWU5NDFmMzhhYTc0M2Y0MmFiNzcw...",
  "ownedBy": "creator",
  "status": "active",
  "created": "2022-11-14T06:56:46.520Z",
  "data": {
    "id": "53fbfcc4514244c19f75505a1291f...",
    "meetingNumber": "25111318214",
    "meetingType": "meeting",
    "timezone": "UTC",
    "start": "2022-11-14T07:03:52Z",
    "hostUserId": "Y2lzY29zcGFyazovL3VzL1BFT1BMRS9hZjdmMzQ1Ni1lMmVjLTRlNjItYTExM...",
    "state": "inProgress",
    "hostEmail": "sbsrk3+test2@gmail.com",
    "siteUrl": "sandip.webex.com",
    "orgId": "c424470f-26b4-49e2-8e70-d..."
  }
}

Now, as you can see, in the Webhook Response, there is no field for the meetingRoom details, however you'll get the meetingNumber in this response though.
So, you can take the meetingNumber and search that meeting details from /list-meeting API endpoint.
If the meeting is actually started from a specific Room directly, then the roomId field would be listed out in the Response of /list-meetings API.
So, this is one way-out to find out the meeting roomId.
Please let us know in case you still have some query on this.

Kind regards,
Sandip