Short version:
This only applies to Direct links in PowerApps/PowerAutomate. The ‘Direct’ link option is being retired because rather than creating sharing links it creates file download links, which is unlikely to be the intention of the user and may not be accessible after a short period of time. If you are currently using the Direct link option, you have until 25 September 2021 to fix your apps and flows.
Details:
This only applies to Direct links in PowerApps/PowerAutomate. The ‘Direct’ link option is being retired because rather than creating sharing links it creates file download links, which is unlikely to be the intention of the user and may not be accessible after a short period of time.
If you are currently using the Direct link option, you have until 25 September 2021 to fix your apps and flows. After that, the action will return an error message. In order to create a long-lived Sharing Link as intended, please select “View” or “Edit” as the Link Type rather than “Direct”.
Availability:
Beginning 25 September 2021 Microsoft will start retiring the Direct Link option while using the ‘Create sharing link’ action in the OneDrive for Business connector in Power Apps and Power Automate
Links:
Learn more about the connector: OneDrive for Business