I have a OneNote Notebook, and I have a Power Automate Flow that detects when a new page is created and after an initialization delay attempts to locate an attached file to the new page. If there is an attachment, there will only be one, and it needs to be auto-saved to a new sharepoint item.
https://github.com/microsoftgraph/microsoft-graph-docs/blob/main/concepts/onenote-get-content.md#image-or-other-file-resource
accessing the file resources seems straight forward, but I cannot for the life of me figure out how to build a proper call or otherwise finagle powerautomate to function as expected to pull the file (PDF) from OneNote and attach to sharepoint.
FYI both the notebook and the sharepoint list are own by my org, and I have proper endpoints from what I can tell. Its very rough right now, and I feel having to discover the object URL and then transform it with multiple 'replace' functions to make it usable for a graph call is just overkill and overthinking the problem.
I would love a solution here, been overthinking this for a couple weeks now. Any direction would be great (that does not use premium powerautomate connectors please- they shouldnt be necessary)