You can also get structured data out of mailboxes with my project EmailEngine. You can use an API request to fetch message contents, or you can configure EmailEngine to send a webhook for every new email in a structured JSON, for example, like this: https://emailengine.app/webhooks#messageNew
I don't think I was specific enough on what kind of structured data. The idea is that it extracts information from the text/HTML content of emails (e.g. a flight itinerary from an airline booking email or an ingredient list from a recipe) using AI.
Since you already have a method for reaching into folks Microsoft 365 inboxes and such, you could probably train an LLM to extract arbitrary data based on a user's prompt quite quickly though.