I have two tables: Items & ChangeLog and I’d like to update a column value in the Items table with data from the ChangeLog table when a new row is added to the ChangeLog table.
I set up an AppSheet Bot with data change event when new rows are added to the ChangeLog table however I’m not able to reference the data from the “new row” event in subsequent processes and step.
Do you have any tips for this? I suspect that I may be able to achieve this by creating an action on the Items table that references the “most recent” ChangeLog row, but that seems less precise than referencing a specific event via bot automation.
Off the top of my head and without testing, you could use an action of type Data: execute an action on a set of rows from the ChangeLog row to invoke an action of type Data: set the values of some columns in this row. Use inputs (see Set input values dynamically in data-change actions) to pass the updated values from the ChangeLog to the target Items row.
Thanks for this advice, I made some progress following those instructions, but found myself blocked again. The bot throws an error, and I believe it doesn’t know which row to act upon. FWIW I’m using AirTable as my database.
I copied these configurations, but unfortunately, I’m encountering the same issue as before: the bot monitoring logs (screenshot above) appear to show null results from the trigger Event. I believe this causes the first step: Update Item of this ChangeLog to fail to lookup the ChangeLog row and therefore perform no subsequent operations.
Perhaps you’re right. I created a test bot that simply sends an email when new rows are added to ChangeLog and the bot also shows a null results. Very strange because the Bot Event configuration is as simple as can be.
Anyway, thanks for your continued support. I greatly appreciate it!
ChangeLog rows are being added through a form for a slice of the ChangeLog table. I tested without the slice and found the same null result.
id on the ChangeLog rows are set with an initial value of UPPER(UNIQUEID()). AirTable does have a Row ID column that it uses as a primary key, but I make sure to use a AppSheet derived primary key (the id column with a formula)
Yes the ChangeLog rows are being written to AirTable
I’m afraid I can’t think of anything else. I have no experience with AirTable, so I can’t say whether there might be a problem there. I’m going to have to suggest you contact AppSheet Support for further help with this. Good luck!
Hi, Did you find a solution to your problem? I am facing with a similar issue. I also use UUID as key but my app is connected to an external PG database.
… 5 minutes later …. As I composed this reply, it came into my mind that the last time the bot worked I used simple “integer” IDs and on the way I migrated to UUIDs. But I kept the ID’s of the Users as they were, so I ran a quick test on the ‘Add record’ event type on the ‘Users’ table. This time all the all the data points were properly populated, no ‘null’ values…
Can it happen that there is some kind of issue with the UUID handling?