Firstly you’re going to need a column to record the users email address. Create one with an initial value of UserEmail()
Next you’re going to need to create a template for the email body and/or attachment. You’ll need to use a START condition to list all the items in the subtable
So all-in its a lot to learn. My recomendation woud be to use one the of the Appsheet Developers (like me) to rattle this all off for you in less than an hour. Then you can use that to learn how its done and tweak it later. Sorry if this sounds like a sale pitch, it isn’t meant to be. But thats how I started off and sometime I still pay people to show me how specific bits work, even with 6years appsheet experience!
Hi, thanks for the advice but not really an answer to my question. I have the app already running. I have a table with UserEmail() already. Have a template already that now gives a report of all the interventions and a Global Sum of them all but I would like to have a sum per engineer.
My current Start condition is <<Start:ORDERBY(SELECT(Intervention[InterventionID], [Date] = TODAY()),[Email])>><<[Email]>>. With a Global SUM at the end of the table <<SUM(SELECT(Intervention[Total], ([Date] = TODAY()),FALSE))>>, I added a VC to make this work. This works fine but I would like a summary per engineer in one report, not globally.
You would need an “Engineers” table and execute the bot on “ForEachRowInTable” in order to make AppSheet make X number of reports based on the rows of that table. You could create a condition to just execute it on the rows you want.
If you need just one report with all the data of your engineers separated:
Make a Start: expression that gives you the engineers and wrap the whole page of the report with it or just a table, for example. So that appsheet can create new pages per engineer or new tables per engineer.
Your inner expression would need to be changed in order to make sure just get the data from the current engineer.