When the standard and premium connectors in Flow don’t do what you want them to do you have the option to create custom connectors. In these posts you can find how to create your custom connector.
Developing Custom Connectors
How to create a custom connector using MS Graph to read Excel files from SharePoint
How to export an existing connector heling you to build your own custom connector extending the existing ones
The first part of writing your own custom connector
The second part of writing your own custom connector