Saving Reports to a company's SharePoint/OneDrive using AL

@pjllaneras thank you for pointing me in the right direction!

To whoever stumbles across this post looking for their own solution:

I ended up going with the built in SharePoint integration code units in BC most things you want to do with SharePoint in BC can be done with these code units:

https://learn.microsoft.com/en-us/dynamics365/business-central/application/system-application/codeunit/system.integration.sharepoint.sharepoint-auth. (yes this link ACTUALLY ends with a period and breaks the linking so just copy and paste it yourself)

I used the authentication functions to establish the connection between the 2 platforms then used that to initialize the SharePoint client code unit and this is where most of your procedures can come from.

I won’t be able to share any code (for obvious reasons) but feel free to reach out if you have any questions.