I have PDF files stored in a File Type column in Dataverse and trying to download those PDFs via a button/icon in Canvas app using
Download("https://"&envURL&"/api/data/v9.0/<tablename>("&rowID&")/<columname>/$value")
It works for some users but for some it doesn't. If the users (for who it doesn't work) hit the env URL first ("https://org****.crm.dynamics.com") then the file download works for them too.
All users have same access to the table and column. This seems to be some API authorization issue which works when they get logged in to the environment but doesn't work otherwise.
Is there any solution to this?