Use case: students earn classroom money. Their transactions are recorded in one table, and another table called 'Bank' calculates a total balance. I am able to send out an email with a summary of everyone's balances (see image below).
My steps:
Problem: I want to filter the students based on their classroom, then email each teacher only data for their class. Currently I can only send out the whole thing as I'm testing out the Flow.
I tried the filter data operation two ways:
Questions:
I imagine I could execute more of the filter from within PowerApps, but I would like to shift this operation to a recurrence so that it is automated.
Any help is appreciated.
_
Solved! Go to Solution.
Hi @mr-dang,
Could you please share a full screenshot of your flow's configuration?
Could you please show a bit more about your Google Excel table?
Further, do you want to filter records based on classroom?
I have created a Google Excel table on my side and the data structure of it as below:
I assume that you want to filter records whose Class is equal to 1, please take a try with the following workaround:
@equals(item()?['Class'], '1')
item()?['Student_x0020_Name']
The key of second entry set to Current Balance and the corresponding value set to following formula:
item()?['Current_x0020_Balance']
The key of third entry set to Class and the corresponding value set to following formula:
item()?['Class']
Note: The Student Name, Current Balance and Class are columns in my Google sheet, on your side, you could get the column value within your Google sheet with following formula:
item()?['ColumnNameInYourGoogleSheet']
If there is a space within the column name, you must replace the space with '_x0020_' within above formula (WDL expression).
Image reference:
The flow works successfully as below:
More details about using expression in flow actions, please check the following article:
https://flow.microsoft.com/en-us/blog/use-expressions-in-actions/
Best regards,
Kris
Hi @mr-dang,
Could you please share a full screenshot of your flow's configuration?
Could you please show a bit more about your Google Excel table?
Further, do you want to filter records based on classroom?
I have created a Google Excel table on my side and the data structure of it as below:
I assume that you want to filter records whose Class is equal to 1, please take a try with the following workaround:
@equals(item()?['Class'], '1')
item()?['Student_x0020_Name']
The key of second entry set to Current Balance and the corresponding value set to following formula:
item()?['Current_x0020_Balance']
The key of third entry set to Class and the corresponding value set to following formula:
item()?['Class']
Note: The Student Name, Current Balance and Class are columns in my Google sheet, on your side, you could get the column value within your Google sheet with following formula:
item()?['ColumnNameInYourGoogleSheet']
If there is a space within the column name, you must replace the space with '_x0020_' within above formula (WDL expression).
Image reference:
The flow works successfully as below:
More details about using expression in flow actions, please check the following article:
https://flow.microsoft.com/en-us/blog/use-expressions-in-actions/
Best regards,
Kris
how would this work if the class ("1", "2", etc.) was actually the email address of the teacher, and this email address was in the source table being queried? The goal being how to simply iterate over each email address and summarize just those applicable rows into the html table that is sent out in email, and not "hard code" assumptions into the Flow logic about how many classrooms (or email targets) there will be?
I'm new, and trying to adapt this post into my similar use case of grabbing a subset of rows from an Excel sheet and emailing them as an html table to the owner (in a single email, not 1 email for each row.) Like a "group by email" expression.
User | Count |
---|---|
87 | |
81 | |
46 | |
29 | |
23 |
User | Count |
---|---|
31 | |
30 | |
27 | |
21 | |
19 |