# Pay Button - Relation Question

**URL:** https://community.glideapps.com/t/pay-button-relation-question/15345
**Category:** Ask for Help
**Created:** [September 6, 2020, 1:20am UTC](https://community.glideapps.com/t/pay-button-relation-question/15345 "2020-09-06T01:20:53Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![\_eric](https://avatars.discourse-cdn.com/v4/letter/_/5f9b8f/32.png) [@\_eric](https://community.glideapps.com/u/_eric)
#### Post date: [September 6, 2020, 1:20am UTC](https://community.glideapps.com/t/pay-button-relation-question/15345/1 "2020-09-06T01:20:53Z")

</div>

How can I relate past payments back to other records?

There is an App:Sales tab in my Google Sheet but the tab is not accessible in glide and I am unable to relate that payment back to the parent record.

Does anyone have a solution?

---

<div class="post-metadata">

### Author: ![kyleheney](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/kyleheney/32/41173_2.png) [@kyleheney](https://community.glideapps.com/u/kyleheney)
#### Post date: [September 6, 2020, 1:22am UTC](https://community.glideapps.com/t/pay-button-relation-question/15345/2 "2020-09-06T01:22:31Z")

</div>

If you just need the App: Sales values, just create a new sheet and use an Arrayformula for to pull in all its values. That new sheet will be accessible in Glide and you’ll be able to use it for relations.

---

<div class="post-metadata">

### Author: ![\_eric](https://avatars.discourse-cdn.com/v4/letter/_/5f9b8f/32.png) [@\_eric](https://community.glideapps.com/u/_eric)
#### Post date: [September 6, 2020, 1:23am UTC](https://community.glideapps.com/t/pay-button-relation-question/15345/3 "2020-09-06T01:23:43Z")

</div>

Do you know the array formula for that? That is exactly what I am looking for…

---

<div class="post-metadata">

### Author: ![\_eric](https://avatars.discourse-cdn.com/v4/letter/_/5f9b8f/32.png) [@\_eric](https://community.glideapps.com/u/_eric)
#### Post date: [September 6, 2020, 1:38am UTC](https://community.glideapps.com/t/pay-button-relation-question/15345/4 "2020-09-06T01:38:07Z")

</div>

Figured it out:

=QUERY(‘App: Sales’!A:N)

---

<div class="post-metadata">

### Author: ![Roberto\_Salim](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/roberto_salim/32/6861_2.png) [@Roberto\_Salim](https://community.glideapps.com/u/Roberto_Salim)
#### Post date: [September 6, 2020, 6:44pm UTC](https://community.glideapps.com/t/pay-button-relation-question/15345/5 "2020-09-06T18:44:30Z")

</div>

> [@\_eric](#):
>
> QUERY

That’s right, that’s what I did, and if I remember correctly the second column “Pus … Item” and renamed it with the same name in my product guide and created a list of them, with that to create visibility based on payment 😉

---

<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: [September 7, 2020, 2:48am UTC](https://community.glideapps.com/t/pay-button-relation-question/15345/6 "2020-09-07T02:48:39Z")

</div>

You should not need the query, albeit it’s an alternative, it should be just:

```
={'App: Sales’!A:N'}
```
