# Custom Actions Question

**URL:** https://community.glideapps.com/t/custom-actions-question/51573
**Category:** Ask for Help
**Created:** [October 12, 2022, 6:37pm UTC](https://community.glideapps.com/t/custom-actions-question/51573 "2022-10-12T18:37:40Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![BobbyG77](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@BobbyG77](https://community.glideapps.com/u/BobbyG77)
#### Post date: [October 12, 2022, 6:37pm UTC](https://community.glideapps.com/t/custom-actions-question/51573/1 "2022-10-12T18:37:41Z")

</div>

I have an app running on an Airtable base. It tracks (data entries by employees): employee timesheet entries, accomplishment of specific commissionable actions and rewards for receiving 5-Star Reviews (entries by Admins). That’s 3 different sets of data.

A Payroll Calculations table combines information from all three sources to determine an employee’s pay for a given Pay Period (which is Week # - Sunday to Saturday). So, when an employee makes a Timesheet Entry, a row is created in the Timesheets table the following values are to be passed to the Payroll Calculations table:

- Employee Name

- Time entry Start Date and Time

- Time entry Stop Date and Time

When an employee makes a Timesheet entry from an iPhone, the new record is created in the Timesheets table. I’d like it to also to create a record in the Payroll Calculations table and update corresponding fields (Employee Name, Start/Stop Date and Time). Should I create a custom action as part of the Upon Submit routine?

If not, what suggestion would be easier/better? I’d like the same thing to happen in the Payroll Calculations table when records are created in the other (Commissionable Actions and 5-Star Reviews) two data source tables.

Thanks in advance for any guidance provided.

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [October 13, 2022, 1:49am UTC](https://community.glideapps.com/t/custom-actions-question/51573/2 "2022-10-13T01:49:43Z")

</div>

> [@BobbyG77](#):
>
> When an employee makes a Timesheet entry from an iPhone, the new record is created in the Timesheets table. I’d like it to also to create a record in the Payroll Calculations table and update corresponding fields (Employee Name, Start/Stop Date and Time). Should I create a custom action as part of the Upon Submit routine?

Yes, you could have an onSubmit action that adds a row in your second table.

Might not be applicable here, but I’d be a little wary of creating too much redundant/duplicate data.

---

<div class="post-metadata">

### Author: ![alexpress](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/alexpress/32/7240_2.png) [@alexpress](https://community.glideapps.com/u/alexpress)
#### Post date: [October 13, 2022, 1:54am UTC](https://community.glideapps.com/t/custom-actions-question/51573/3 "2022-10-13T01:54:41Z")

</div>

Hey, is there a way to trigger the Buy Button through a custom action??

---

<div class="post-metadata">

### Author: ![BobbyG77](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@BobbyG77](https://community.glideapps.com/u/BobbyG77)
#### Post date: [October 13, 2022, 2:37pm UTC](https://community.glideapps.com/t/custom-actions-question/51573/4 "2022-10-13T14:37:58Z")

</div>

Thanks Darren. Given your last comment, I think I’m going to change my approach to have all data posted to the Payroll Calculations table, rather than having individual tables for Timesheets, Commissionable Actions and 5-Star Reviews. It would eliminate duplicate data and make things a lot more efficient.

For individual sets of information, I’ll just create Airtable Views for Timesheets, Actions and Reviews.

---

<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: [October 14, 2022, 12:20am UTC](https://community.glideapps.com/t/custom-actions-question/51573/5 "2022-10-14T00:20:56Z")

</div>

> [@alexpress](#):
>
> Hey, is there a way to trigger the Buy Button through a custom action??

No, that is not an option now.
