Skip to main content

How do I save a monday.storage item using mondaySdk.MondayServerSdk?

  • May 31, 2024
  • 3 replies
  • 165 views

dvdsmpsn
Forum|alt.badge.img+1
  • Participating Frequently
  • 425 replies

I’m trying to use monday.storage.setItem on the server side (like you can in client-side code), but monday.storage is not present.

How do I achieve something like this?

const monday: mondaySdk.MondayServerSdk = mondaySdk({ token: shortLivedToken, apiVersion: '2023-10' });

monday.storage.setItem(key, JSON.stringify(payload)).then(() => {
  //   ^^^^^^^
  //   missing, so won't work on server-side
  console.log(' ✅ item view configuration saved to storage ');
});

3 replies

dvdsmpsn
Forum|alt.badge.img+1
  • Author
  • Participating Frequently
  • 425 replies
  • May 31, 2024

Oh, it’s “easy” if you’re using monday-code.

@benhowes & @dipro recommend this:

await storage.set(key, value, {  shared:true });

shared means its accessible on the client side.

See: apps-sdk for monday code


  • Participating Frequently
  • 948 replies
  • May 31, 2024

My understanding is the apps-sdk will work even without monday-code for regular monday.storage. I don’t think it works for secure storage though.


Forum|alt.badge.img
  • New Participant
  • 3 replies
  • October 14, 2024

good morning thanks for information how can i get the <ACCESS_TOKEN> ?