I'm currently building a flow to automatically upload my emails (as well as any attachments) to my SharePoint site. Please see the image attached below for my current progress.
The issue I'm having is with getting the attachments to my SharePoint. Although attachments like '.png' are viewable, any uploaded pdf attachments can only be viewed in Preview mode. Upon searching online, I found that you could incorporate the "base64ToBinary(items('Apply_to_each')?['contentBytes'])" function into the "Create File 1" command, but this caused yet another error. I'm not sure if I have to create an entirely new flow to address this part, but I wanted to reach out here first. I'm pretty new to Power Automate, so I'm still in the learning steps with all of this. Thank you so much for your help!