Wait for data sync befor sending automated report

Hi,

Newbie here.

I'm trying to send a report every time a new record is added to a table, but the report is sent before related data in another table is added, thus the report ends up incomplete.

Mi first table is 'Certificates' (think of inspections), and the second 'Items'. 'Certificates' is referenced by 'Items', and 'Items' "is a part of" 'Certificates'. So when you add a Certificate you must create new Items.

When the 'Certificate' is done and added, a report of which items contains should be sent via email. But I believe that the Certificate is added to the Certificates table, the email is sent, then the items are added to the items table. Resulting in a empty report.

If I test the automation with a previously made Certificate, the sent report is fine. No trouble with formating the report whatsoever.

 

Now, I can make the automation wait 5 minutes before sending the report (what I'm doing now). But is a kind of cheap solution.

Also tried "Wait until condition" where the condition was "=IN([_THISROW].[ID], ITEMS[ID])" or "=IN([ID], ITEMS[ID])". But yielded no email, even.

How could I make the automation wait for the Items referencing the certificate be added before sending the mail?. Is my approach even correct? I imagine a invoice app should work similarly.

Hope I explained myself.

ยกGracias!

Solved Solved
1 4 246
1 ACCEPTED SOLUTION

See topic "Sending Email Only After Adding a Parent Record and All of Its Children " in this article https://help.appsheet.com/en/articles/961707-workflow

View solution in original post

4 REPLIES 4

See topic "Sending Email Only After Adding a Parent Record and All of Its Children " in this article https://help.appsheet.com/en/articles/961707-workflow

Thanks, this worked inmediately ๐Ÿ˜€

Aaaah I need exactly this what @Gereze asked but this link in the answer does not exist anymore. Could anyone help me out with how to make an event start after a complete update WITH related columns please :d

Two years late, but in case someone else runs across this thread while trying to fix something, like I just did - here's an updated link: https://support.google.com/appsheet/answer/11447614#send-email-after-parent-and-all-child