Forum Discussion

ru-11-22-share's avatar
ru-11-22-share
Copper Contributor
Sep 17, 2024

Webinar data not coming In response

Hi Guys, 

In our node js application we need to fetch the webinars because that's we want to show into our front end but for that, I am using the below code 

 try {
    let virtualEventWebinar = await client
      .api("/solutions/virtualEvents/webinars?$count=true")
      .get();
    console.log({ virtualEventWebinar });
    return res.status(200).json({ message: "success" });
  } catch (error) {
    console.error(`Error fetching events: ${error}`);
  }

Now in response I am getting this data 

{
  virtualEventWebinar: {
    '@odata.context': 'https://graph.microsoft.com/v1.0/$metadata#solutions/virtualEvents/webinars',
    '@odata.count': 8,
    value: []
  }

 As we can see data.count is 8 but in value [] array is empty why is that? I don't get it what is the problem here can any one please help?

No RepliesBe the first to reply

Resources