Hi
I'm trying to build a powerapp which would allow the user to drag and drop an email into an attachment field, click a button in the app which would run a flow which would save the email to sharepoint.
I've separately been able to design a flow which will save an email placed into a folder in outlook to a specified folder on sharepoint. However, when I've shared this flow with people they've found it tricky to use, as they need to go into the flow to change the destination location for sharepoint etc. So the idea of the powerapp is to switch the email saving from a background operation which runs when emails are copied to a folder in outlook to one the user has to take a greater part in, but doesn't then involve the user making changes in flow.
I've been using https://www.youtube.com/watch?v=yC0W5am6M3Q to create the powerapp and I'm able to drop an email into the powerapp and have it save in sharepoint. However, I want to use some of the properties of the email (the subject, date received, sender) to rename the email and to extract and rename any attachments.
In my existing flow I'm able to do this as I use the "export email (V2)" function. This gives me access to the subject, date received etc as dynamic content. However, I can't work out how to access this information when I'm importing the file from a powerapp.
I've tried copying the function which you see if you hover your mouse over the dynamic content in the flow which works ("triggerOutputs()?['body/subject'] say) but this hasn't worked. I've also tried a variation of this triggerBody()['file']['subject'], but that doesn't work either.
I feel as though I'm missing something really obvious, but is there a way to get hold of the email information and attachments if you import an email into a flow using a powerapp?
Thanks!