If that is true, and the report runs as the App Owner then:
Create an slice based on the user log in is gone
The App will filter all the records and send the same information to all the teachers
This is not the desired behaviour so I’m thinking about alternatives.
[Alternatives]
I’m not sure if it would be possible to actually configurate the report to send only the related information for each teacher in the report.
If 1 is not possible, I’m thinking that maybe I should create multiple slices, one for each teacher, and create multiple schedule reports to be sent to them.
I’m more inclined for option 2 given my current knowledge on Appsheet but I’m trying to find a more efficient solution, if any.
I have tried the suggestion but it’s not working as expected but I think the problem is inside my expression.
When I test the script it does the following:
It sends the same email to each teacher
The attached file has the information of all the teachers
When I played around the option “Create Report” the only difference was the frequency for which I got the emails:
Using ForEachRowInTable send the same file to all the emails several times
Using ForEntireTable send the same file to all the emails only once.
I do think that I must put a condition inside my Report expression so I only get the Session’s information related to the email I’m sending the information to:
Otherwise the Report wouldn’t have the info to know what to send to each Teacher and just send the whole slice BUT I don’t know if the Expression can interact with / read the current email the Report is looking at.