Accessing the ItemId in an Item View app

Hi @mattfitzgerald!

Ahh okay actually I think I may have figured it out. Are you testing this on a board with an item? Or are you testing this in the app preview section?

The reason I ask is because I was able to retrieve the relevant item ID using both the monday.listen("context",...) method, as well as the monday.get("context",...) method.

However, this only worked for me when testing on a relevant item in my board (i.e. I go into one of the items on one of my boards, and add this example item view to it). When testing in my app preview area, I did not get any item ID information, since there isn’t any context to get from the app preview section!

Regarding your question, the listen SDK method acts largely like a webhook for your view app, and essentially subscribes you to event changes initiated in your view app. The get method will retrieve information about your view app, but won’t be subscribed and “listening” to events initiated.

As such, the documentation is indeed correct. I copied your code and was able to get it working for me. This is the payload I’m seeing on my end: