Microsoft recently introduced the File datatype for Power Apps Dataverse tables. I want to build a Power Apps Portals site that would utilise this datatype + Power Automate and Azure Functions to achieve file processing functionality. The processing would be as follows:
- User on the Portals site uploads a File into the Dataverse table.
- A Power Automate Flow that is looking for changes in the particular File column within the table is triggered.
- The first step of the Flow is to retrieve the File's content using the action Download a file or an image.
- Pass the resulting object (which I believe is application/octet-stream) into an Azure Function and convert it (attempt) into a CSV file. (File sizes could range from a fraction of a MB to 30+)
- Run a bunch of Python code to validate it is indeed a CSV file + has xyz columns and rows + validation of datatypes etc.
- The return value of the Function would be True/False.
- Continue the rest of the Flow depending on whether True/False was returned.
I'm fairly confident I can get steps 1-3 and 5-7 done. I don't quite understand how to achieve step 4 -- many examples around the internet seem to regard Blob Storage, DotNet language, etc, but not this problem specifically.
Much appreciated all.