Hi everyone,
I’d like to ask for feedback and ideas on whether we’re using the SDK Storage method correctly.
Our custom app consists of a form-based flow:
-
Form A is used to set up boards and item columns using monday.com’s GraphQL API.
-
After a successful submission of Form A, Form B receives the generated board and column IDs from the GraphQL mutations. These IDs are then used in another mutation to create new items in the board (like a record table).
App flow:
-
Fill out Form A and click Submit
-
Run GraphQL mutations to create boards and columns
-
Retrieve the generated board and column IDs
-
Store the IDs in monday Storage
-
Redirect to Form B
-
Form B retrieves the stored IDs
For step #4, we are currently using monday-sdk-js
(https://developer.monday.com/apps/docs/introduction-to-the-sdk)
to store the generated IDs. This is done on the client side only, since there was an announcement that server-side usage will be deprecated soon.
However, we may soon introduce an automation that uses webhooks, where the webhook triggers GraphQL scripts. In this case, we plan to use the @mondaycom/apps-sdk
(https://developer.monday.com/apps/docs/monday-code-javascript-sdk).
The issue is that we’re unable to retrieve the values stored via monday-sdk-js on the client side when using the new Storage('<ACCESS_TOKEN>') approach on the server side.
With that in mind, I have a few questions:
-
Would it be better to use @mondaycom/apps-sdk for storage in our use case (especially for step #4)?
If so, would it be better to move steps #4 and #6 to the server side as well?
My thinking is that this would be a better approach given our potential future use case involving automations and webhooks, but I’d appreciate your thoughts on this. -
Based on this community post
https://community.monday.com/t/storage-not-accessible-from-view/72941
Dipro mentioned that it’s possible to fetch storage values created with monday-sdk-js on the client side from the server side using @mondaycom/apps-sdk. However, this doesn’t seem to work in our case. We are using the same token as the access token parameter for the Storage method.
-
Is this approach correct, or are we missing something?
-
If it is correct, is it still possible to access storage values across client-side and server-side contexts using different SDKs?
-
For client side: We are using ReactJS with monday-sdk-js v0.5.6
For server side: ExpressJS with @mondaycom/apps-sdk v3.2.1
Any feedback or suggestions would be greatly appreciated.
Thank you very much!