Synchronize sums of values between two tables using a bot

Hello everyone. 

I'm looking for a way to automatically update inventory itself in the spreadsheet when purchases are added to the same item

Currently, only totals are shown using a virtual column and are not shown in the spreadsheet.

The virtual column works but then the correct sum is only shown in the app. The table is not updated until you edit and save again.

Is there a way to update the [STOCK TOTAL]?

______________________________

  • IN Table "STOCK" I'm looking for a way to automatically update inventory itself In Column named  [STOCK TOTAL]

A2_3.jpg

  • In Table "PURCHASES"  there is a Column named [CODE] it Ref  from Table "STOCK"

A1_2.jpg

______________________________

  • IN Table"STOCK" I used a virtual column named [TOTAL] to calculate purchase totals for the same item In Table "PURCHASES"

A8_2.jpg

  • Table "PURCHASES"

A7_2.jpg

______________________________

  • Tables in UX

A4_3.jpg

A3_3.jpg

______________________________

NOTES:

Its working only by  AUTOATION  Schedule/Daily

And what i'm looking for to update it at same time when i add new purchas

A5_2.jpg

A6_2.jpg

 

Regards ๐Ÿ™‚

Solved Solved
0 7 372
3 ACCEPTED SOLUTIONS

Yes.  So in every form view you have the option to specifiy an action to run on save.  You'll need to create an action that does the same as your bot.  Checkout - https://support.google.com/appsheet/answer/10107706?hl=en&sjid=9339519957457044615-EU#

Simon, 1minManager.com

View solution in original post

@Izzat_Safrah  As Simon says,you need to tie your Action to "On Form Save"

View solution in original post

You need to use another action to execute this action in purchases table using Data: execute an action on a set of rows

View solution in original post

7 REPLIES 7

Yes.  So in every form view you have the option to specifiy an action to run on save.  You'll need to create an action that does the same as your bot.  Checkout - https://support.google.com/appsheet/answer/10107706?hl=en&sjid=9339519957457044615-EU#

Simon, 1minManager.com

Hi, @1minManager 

If i create action it will not update it by itself. I have to manually click on the action icon.

  • This My Action Steps  โ†ด

B1_2.jpg

B1_3.jpg

B3_2.jpg

______________________________

  • Here Is What The Action Looks Like  โ†ด

B4_GIF.gif

@Izzat_Safrah  As Simon says,you need to tie your Action to "On Form Save"

You need to use another action to execute this action in purchases table using Data: execute an action on a set of rows

I follow your steps and Its working berfect.

@1minManager  @Lynn  @Rifad 

  • This My Action Steps โ†ด

B5_1.jpg

B6_1.jpg

B7_1.jpg

B8_1.jpg

B9_1.jpg

______________________________

  • Here Is What The Action Looks Like  โ†ด

B10_GIF.gif

______________________________

Thank you for support ๐Ÿ™‚

Hello, 
what happens when you delete a record, it doesn't update the stock

" For delet record "

Need these steps to create bot with action. 

A DELET.jpg

B DELET.jpg

1 DELET.jpg

2 DELET.jpg

3 DELET.jpg

4 DELET.jpg

Top Labels in this Space