I’m managing a shared inbox and would like to add a line in a spreadsheet for any new emails and to update the name of the folder any existing emails are in. (Thinking I can duplicate the flow and filter for each "folder" in the email trigger and then hard code that into the excel column)
With the “new email” trigger this would be easy to do so I could log a new email and then look it up periodically to update the folder and any other attributes. The problem with shared inboxes is I can’t use the regular “new email” trigger and have to trigger off of “new emails from shared inbox” which only runs every 15 min and collects top 10 emails in a folder OR “get emails v3” which each return an array of emails.
Any ideas on how I’d take that array, for each email assess if the email already exists in the spreadsheet: if yes, update the “read” status (and a couple other attributes) and if no, add it to the sheet as a new row in a table?
I've tried all kinds of loops and have had things work sometimes but either it adds the same email 100+ times or errors out. Appreciate any ideas!