
Hello,
I want to create a flow so that whenever one or more photos are taken and sent in a Teams conversation (where several members are present), the photo(s) are imported into an O365 group.
I tried using a trigger ‘when a new instant message is added (in Teams)’ -> followed by the condition that checks whether it is indeed an image ("not(empty(triggerOutputs()?[“body/attachments”])))")
In the True condition, I add a ‘for each’ loop where I find the ‘Create a file (SharePoint)’ action. I have customised the name so that it takes the date format (year-month-day-time) : "formatDateTime(utcNow(), “yyyy-MM-dd_HH-mm-ss”) & “.jpg”"
I’m stuck at “File content”; I have no idea what to put there.
Could you please help me? Is this the right way to do it? Do you see a better or simpler way?
Thank you in advance for your help