Skip to main content

API to get the current view id

  • November 10, 2020
  • 3 replies
  • 1402 views

Forum|alt.badge.img

Hi there,

I am creating a new View using the SDK

Is there a way to get the current view, or current board on which the view is being created?

I see queries to get all data, but don’t see a way to get the current board, or current view.

Regards,
Kranthi

This topic has been closed for replies.

3 replies

dsilva
Forum|alt.badge.img
  • Participating Frequently
  • November 10, 2020

Hey @kranthi_thoughtflow - I believe this would be only be possible using ‘monday.get’ through the SDK, please see our documentation on this.

For example, you can send something like this:

monday.get("context").then(res => ...);

and this would be an example of what to receive:

// Board view context
{
  "boardViewId": 19324,
  "boardId": 3423243,
  "mode": "fullScreen", // or "split"
  "theme": "light"  // or "dark"
}

-Daniel


Forum|alt.badge.img

Thanks buddy. That helps.


  • March 5, 2021

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.