Skip to main content

Accessing monday.storage SDK method in workdocs

  • June 20, 2023
  • 7 replies
  • 445 views

PluginGenie
Forum|alt.badge.img

When I try to access monday.storage via the SDK in a workdoc, I see the error: “storage command isn’t available or supported for this app feature type”. Is it expected that this is available in workdocs?

I’m using the example from the documentation when trying to get/set the storage key: monday.storage.

7 replies

rachelatmonday
Forum|alt.badge.img
  • monday.com Team Member
  • June 20, 2023

Hi @PluginGenie,

Thanks for bringing this to our attention! We’re looking into this, so I’ll update you on this thread when we have a resolution!


rachelatmonday
Forum|alt.badge.img
  • monday.com Team Member
  • June 21, 2023

Hi @PluginGenie,

Are you using a doc action feature?


PluginGenie
Forum|alt.badge.img
  • Author
  • Participating Frequently
  • June 21, 2023

Yes, I’m using the Doc Action feature.


Forum|alt.badge.img
  • New Participant
  • July 12, 2023

Hi @rachelatmonday, Any update on it?
I am getting Invalid storage access
Thanks


rachelatmonday
Forum|alt.badge.img
  • monday.com Team Member
  • July 12, 2023

Hi @RambabuPatina and @PluginGenie -

We do not yet have documentation as we are in the process of creating it now, but we recently added the ability to use the storage API on a global basis, not just instance.

Global:

  • storage.getItem(key)
  • storage.setItem(key)
  • storage.deleteItem(key)

Instance:

  • storage.instance.getItem(key)
  • storage.instance.setItem(key)
  • storage.instance.deleteItem(key)

Please try using this with your app features, and let us know if you have any other questions!


gorkagallo
Forum|alt.badge.img
  • New Participant
  • July 13, 2023

So, the storage instance does not work? Why is throwing invalid access?

Thanks.


rachelatmonday
Forum|alt.badge.img
  • monday.com Team Member
  • July 17, 2023

Hi @gorkagallo,

That is correct for apps without instances. The global storage will only work for instance-less features!