PLEASE NOTE: the original "When a New Email Arrives in a Shared Mailbox" routine is no longer available in the latest version of PAD, which renders all of the tutorials online for my question void.
I am trying to grab emails from a mailbox, and then save both the email content & its attachments to SharePoint. Saving the email portion is working great...it's the attachment piece I'm struggling with.
Looping through the attachments of the email using a for-each loop, I use the "Get Attachment (V2)" routine to grab them all, and then a "Create File" routine to try and write the content of the attachments out to SharePoint. However, I get an error re: "Argument 'File Content' must be 'Binary'. No matter what variable selection I try, and what I assume is the binary content of the attachment, the flow won't run.
Do I need to physically save the attachment somewhere, convert it to binary, and then upload it to SharePoint, so should this all be able to happen "in memory"? If so, any idea what I'm doing wrong?