# Magic with action button

**URL:** <https://community.glideapps.com/t/magic-with-action-button/61480>\
**Category:** Ask for Help\
**Created:** [May 8, 2023, 12:29pm UTC](https://community.glideapps.com/t/magic-with-action-button/61480 "2023-05-08T12:29:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ronald](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ronald/32/49776_2.png) [@Ronald](https://community.glideapps.com/u/Ronald)\
**Post date:** [May 8, 2023, 12:29pm UTC](https://community.glideapps.com/t/magic-with-action-button/61480/1 "2023-05-08T12:29:55Z")

</div>

Hi and good afternoon from Spain!

I need a little help with a button witch triggers a action.

The button “lives” on (Glide) data table “sales” and needs to trigger a action. So far so good. Here is my challenge: the action is using another table and “lives” on the (Glide) data table “sales\_helper” (so another table).

The action is regarding a webhook trigger and needs data from “sales\_helper”. To combine the 2 tables in to 1 table isn’t an option.

Please advise.

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [May 8, 2023, 12:35pm UTC](https://community.glideapps.com/t/magic-with-action-button/61480/2 "2023-05-08T12:35:28Z")

</div>

Is there a way you can bring in data from the sales helper table either through a relation/lookup or a singlevalue→ whole row→ lookup ?

---

<div class="post-metadata">

**Author:** ![Ronald](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ronald/32/49776_2.png) [@Ronald](https://community.glideapps.com/u/Ronald)\
**Post date:** [May 8, 2023, 1:01pm UTC](https://community.glideapps.com/t/magic-with-action-button/61480/3 "2023-05-08T13:01:33Z")

</div>

Hi Robert,

Yes, there is a short relation between the “sales” table and the “helper” table.

The button (button 1 - sales table) needs to;

Establish a relation from sales to helper and create a new row, based on a user specific text input from the sales table.

The helper table creates the right data for the webhook.

(This will result for now… In a inline list (on the helper table) witch displays on the sales table. With a click to action it triggers the webhook action (witch lives on the helper table) to create some documents. Let call this button 2 for now.

Now the documents (url) is displayed on the sales table and with an relation to self the created row is deleted.

Everything works great but a need to lose the second button. Everything has to go with only 1 user click.

Regards, Ronald

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [May 8, 2023, 11:59pm UTC](https://community.glideapps.com/t/magic-with-action-button/61480/4 "2023-05-08T23:59:16Z")

</div>

> [@Ronald](#):
>
> Establish a relation from sales to helper and create a new row, based on a user specific text input from the sales table.

Can you explain what the new row does in this context?
