# Workflow sends information in workflow environment to Supabase but not front end

**URL:** <https://community.weweb.io/t/workflow-sends-information-in-workflow-environment-to-supabase-but-not-front-end/3316>\
**Category:** Ask us anything\
**Tags:** supabase\
**Created:** [July 2, 2023, 11:28am UTC](https://community.weweb.io/t/workflow-sends-information-in-workflow-environment-to-supabase-but-not-front-end/3316 "2023-07-02T11:28:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![JamesPan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/jamespan/32/3594_2.png) [@JamesPan](https://community.weweb.io/u/JamesPan)\
**Post date:** [July 2, 2023, 11:28am UTC](https://community.weweb.io/t/workflow-sends-information-in-workflow-environment-to-supabase-but-not-front-end/3316/1 "2023-07-02T11:28:05Z")

</div>

Hi,

I am trying to create a workflow where I edit a users information, but with an extra action when if the name is being changed that it’s also changing the name in another table in Supabase.

To do so, the ID of that action looks like this:

 ![Screenshot 2023-07-02 at 13.22.50](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/7/76a7399dac1524fa925fbced56f94282d8a49d9e.png)

And when I test it in the workflow environment it works, but when I edit it on the front-end, nothing happens.

* * *

At first I tried to use a foreign key in Supabase to get the name in the table, but it didn’t work, so that’s why I am using a workflow to get the name in the TeamMembers table. This was the only solution, I can come up with my **NO** -code skill level.

---

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [July 2, 2023, 8:23pm UTC](https://community.weweb.io/t/workflow-sends-information-in-workflow-environment-to-supabase-but-not-front-end/3316/2 "2023-07-02T20:23:22Z")

</div>

Have you the collection fetched on the front-end too? if you want update something in Supabase you should use the update collection workflow action, what are you using here to change the values?

---

<div class="post-metadata">

**Author:** ![JamesPan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/jamespan/32/3594_2.png) [@JamesPan](https://community.weweb.io/u/JamesPan)\
**Post date:** [July 3, 2023, 1:14am UTC](https://community.weweb.io/t/workflow-sends-information-in-workflow-environment-to-supabase-but-not-front-end/3316/4 "2023-07-03T01:14:43Z")

</div>

Deleted my previous reply, because I thought I had the solution which wasn’t

---

<div class="post-metadata">

**Author:** ![jaredgibb](https://avatars.discourse-cdn.com/v4/letter/j/ecd19e/32.png) [@jaredgibb](https://community.weweb.io/u/jaredgibb)\
**Post date:** [July 3, 2023, 1:24am UTC](https://community.weweb.io/t/workflow-sends-information-in-workflow-environment-to-supabase-but-not-front-end/3316/5 "2023-07-03T01:24:12Z")

</div>

Can you [rubber ducky](https://ubisglobal.com/blog/get-a-rubber-duck-how-to-make-your-study-time-more-effective/#:~:text=The%20Rubber%20Duck%20Debugging%20theory%20is%20commonly%20used%20by%20programmers,the%20solution%20to%20present%20itself.) this a bit with some more screenshots of the logic and maybe explain where the inputs come from

---

<div class="post-metadata">

**Author:** ![dorilama](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/dorilama/32/10403_2.png) [@dorilama](https://community.weweb.io/u/dorilama)\
**Post date:** [July 3, 2023, 7:03am UTC](https://community.weweb.io/t/workflow-sends-information-in-workflow-environment-to-supabase-but-not-front-end/3316/6 "2023-07-03T07:03:08Z")

</div>

Your formula always returns `teammenber.data[0].id`.  
Use the `if` formula if you want a conditional value.

---

<div class="post-metadata">

**Author:** ![JamesPan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/jamespan/32/3594_2.png) [@JamesPan](https://community.weweb.io/u/JamesPan)\
**Post date:** [July 9, 2023, 5:06am UTC](https://community.weweb.io/t/workflow-sends-information-in-workflow-environment-to-supabase-but-not-front-end/3316/7 "2023-07-09T05:06:14Z")

</div>

Thank you all for your answer.

I think I overcomplicated things at the start. I went back to Supabase and started all over again with the tables and the columns, and by doing so. It seems like the setup of the collections seems more logical.

I’m still in the learning process, but step by step we are moving forward.
