Hi,
I’m new to Plasmic and I’m trying to accomplish a very simple task.
I would like to show a Success or Error notification depending on previous step result that is a Supabase query run through the action “Use integration”.
Unfortunately, when I try to set “Run this step” to When and then select previous step results they’re always undefined!
Am I missing something?
Please see attached screenshots.
Thanks
I had this question a while ago, so let me share what I’ve gathered so far.
You can skip to the current setup I’m using, which introduces an extra step. However, I found it to be the most comfortable approach to work with, and it’s based on @ryan_mouritz’s workaround in this post: Forum Link.
There’s also a workaround mentioned in this post: Forum Link and here: Forum Link by @fmota. Unfortunately, I couldn’t get it to work without the extra step I mentioned. Additionally, I couldn’t access the second link because it has been more than the allowed number of months for post access in Slack, unless you’re a paid user.
Another workaround is mentioned here: Forum Link by @yang, but as he mentions, you’d have to “fly blind.”
Current Setup I’m Using (based on a combination of the posts mentioned above):
- Add an update state action after your “check integration.”
- Create a state variable (name it something like “check state” or whatever suits you).
- In the value input, choose the previous step that is giving you the undefined value.
- As mentioned by @fmota in her post, enter interactive mode and initiate the integration (heed her warnings about invoking those actions).
- In the next steps, you can now always choose the newly created “check state” to interact with your data, and forget about interacting with the previous step’s state—unless you choose to go with the “blind” option (which requires knowing your response data in advance).
Please note, I’ve been using this approach for a while and haven’t checked if this issue has already been resolved. It might be worth waiting for confirmation from the Plasmic team.
Feel free to reach out if you need any further clarifications.
Thanks @ahmed_makki !
Your setup is working fine for me too !
1 Like