Skip to content

Instantly share code, notes, and snippets.

@nacm
Last active January 23, 2023 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nacm/7951362676c2e1de5b9c752f438a10fc to your computer and use it in GitHub Desktop.
Save nacm/7951362676c2e1de5b9c752f438a10fc to your computer and use it in GitHub Desktop.
Prepare PowerApps Gallery Content for Download as csv file using Power Automate
//This is written for the blog post.
//Visit full post at: https://n-digits.com.au/blog/2023/01/23/solved-how-to-download-csv-from-power-apps-gallery/
ClearCollect(DownloadData, ForAll(Gallery8.AllItems,{
ID:ThisRecord.ID,
Column1:ThisRecord.Column1,
'Column 2':ThisRecord.Column2,
//Add As many columns here
}));
//Run flow - Change flow name
Set(DownloadCSV,FlowName.Run(JSON(
DownloadData,
JSONFormat.IncludeBinaryData)).filelink);
//Download File
Download(DownloadCSV)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment