Hi,
Can someone tell me why the .csv file sent to my email ends up with headers but blank table?
What I did: I have created this button that is intended to export the entire filtered data in a gallery into a .csv file which will be sent to the user or my inbox in this case - upon success.
The button has the followingOnSelect property:
ExportCSV.Run("'Status_1.SelectedText'", "'"&DateFrom_1.SelectedDate&"'", "'"&DateTo_1.SelectedDate&"'",User().Email);
Notify("Export Process Started. You will receive an Email once completed", NotificationType.Success, 3000)
Status_1 is the filter button that filters results based on the work status while DateFrom_1 and DateTo_1 are the respective date filters.
This is how I designed the flow on PowerAutomate

The PowerApps (V2) action contains variables that each will take in dynamic values from the respective input i.e. Status_1, DateFrom_1, DateTo_1 and User().email.

and under the Get Items action I use the variables to help filter the data stored in the Sharepoint list before getting it all to be processed out into a .csv table via the Create CSV table action.

And lastly the CSV table will be sent out to the designated email as an attachment via the Send an Email (V2) action.
I manage to receive the email and .csv file as an attachment but the file contains nothing aside from the headers.

Your help is much appreciated.