Hi all,
I have a Canvas app, in which I'd like users to be able to see a specific Dataverse table.
This table contains a File type column with an attachment, which the user should be able to download.
This I have been able to implement by linking a Gallery to the Dataverse table, and adding a button within each row item of the gallery, pointing to the URL of the attachment, which very roughly looks like:
environmentURL/DataverseAPI/TableGUID/ColumnName/value
The trick:
My users belong to 50 different companies. This information (i.e. which company the user belongs to) is automatically picked up by my App once they log in. What I want is users to be able to see and download attachments from their company-specific Dataverse table, which is automatically chosen and displayed upon login. This means dynamically changing the data source depending on the user.
I suspect I'll need PowerAutomate which could be triggered automatically on start of the App to fetch the right Dataverse table using the user information. But after this I would not know how to proceed. Maybe I use the 'List Rows' step in Power Automate? I feed it into a 'Respond to a Power App or Flow' step, which then stores it in a collection..?. I tried things such as this but to no avail..
Many thanks for your help!!!
Best,
Christopher