Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
Thank you for reaching out and sharing your scenario. From your description, it’s clear that you’re working on a Power Automate flow to forward Power BI alert emails to WhatsApp via Twilio, and you’ve encountered an issue with using images stored in OneDrive for Business as the media source.
Specifically, Twilio requires a direct, publicly accessible image URL that returns a valid content-type such as image/png. However, the sharing link generated by OneDrive for Business redirects to a web-based preview page (serving text/html) rather than delivering the raw image file itself. Because of this, Twilio is unable to retrieve the image and returns an “Invalid media URL” error.
To clarify, this behavior is expected. OneDrive for Business does not natively provide fully anonymous, direct-access file URLs that consistently serve raw file content without authentication or redirection. Even when a file is shared externally, the generated link typically routes through a preview or download experience rather than exposing a clean, static file endpoint suitable for third-party services like Twilio. As a result, Power Automate cannot reliably produce a direct .png URL from OneDrive that meets Twilio’s requirements.
Although Power Automate and OneDrive integrate well for internal workflows, they are not designed to act as a public file hosting solution for external integrations that require direct, unauthenticated access. This limitation is why your current approach is not working, even though the flow itself is correctly configured.
As an alternative, you may consider using a storage option that supports publicly accessible direct file URLs. Within the Microsoft ecosystem, Azure Blob Storage is commonly used for this purpose, as it allows you to generate secure, direct links (for example, using SAS tokens) that return the raw file content with the correct MIME type. This makes it compatible with services like Twilio. Depending on your requirements, other external hosting platforms that provide direct file access could also be used.
Given that your question involves a combination of OneDrive, Power BI, and Power Automate workflow design, the most suitable place to receive specialized guidance would be the Microsoft Power Platform forum. Experts there can help you explore supported patterns, suggest alternative architectures, and provide updates on any future enhancements to OneDrive or Power Automate that might simplify this scenario.
I hope this explanation helps clarify why the archiving operation is not working and assists you in determining the next steps for your process. If you find this response helpful, please consider marking it as the Accepted answer, so others in the community with the same question can benefit.
Thank you again for participating in the forum, and please feel free to reach out anytime if you need further assistance.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.