UpdateContext({locClientEnvURL: LookUp('Environment Variable Values', 'Schema Name' = "ps_ClientEnvironmentURL").Value});
Download($"{locClientEnvURL}/api/data/v9.2/ps_vehicledatabases({gloAsset.'Vehicle Database'})/ps_vehicleimage/$value"
)
In this implementation, I’m referencing the Environment URL from the Power Platform Admin Center, the Dataverse table name, the item's GUID, and the logical name of the image column.
Initially, I encountered an HTTP 401 error, which I resolved by adding a Link control that says:
"Issue with 401 error? Click and sign in here."
This link redirects users to the Environment URL to prompt sign-in.
However, when the download is triggered, instead of retrieving the image file, it downloads a text file. I've attached the downloaded file for your reference.
Appreciate your help on this—thanks in advance!