Monday execute API openItemCard

Hi, I am trying to use below command to open item card on dashboard widget but it doesn’t seem to work . Is it supposed to work on dashboard or not ?
monday.execute('openItemCard', { itemId: });
I am getting below error
Uncaught TypeError: Cannot read property ‘board_id’ of undefined
at main-632ae7001070dd532a18.js:formatted:39221
at vendors-fe8637f4cddd6cf108b2.js:formatted:85878
at dispatch (vendors-fe8637f4cddd6cf108b2.js:formatted:1116)
at main-632ae7001070dd532a18.js:formatted:39258
at vendors-fe8637f4cddd6cf108b2.js:formatted:85878
at vendors-fe8637f4cddd6cf108b2.js:formatted:1045
at n.value (main-632ae7001070dd532a18.js:formatted:146198)
at a.receiveMessage (main-632ae7001070dd532a18.js:formatted:146028)


Looking at that error message, the issue isn’t with the execute command. There is another line that is through an error where you are trying to access the board_id property of an undefined variable.

Are you able to share some more of your code?

Hi @mitchell.hudson , that exception is not coming from my code it’s coming from Monday js libraries which is internally being called by execute. Some function which actually opens the pulse .

Updates seems to work just fine ,below call opens updates view
monday.execute('openItemCard', { itemId: parseInt(itemId), kind: 'updates' });

@dipro Can you help with this ? It’s kind of a blocker for app I am trying to build . @AlexSavchuk

Hey there @vishwajeets :wave:

Sorry for our delay in handling this! I’ll take a further look at this specific function on dashboard widgets and get back to you as soon as I can with an update :slight_smile:

@mitchell.hudson thanks for jumping in here! I appreciate the help.


1 Like