Hi Team, I have created a flow that does the following:
1. When email arrives with a ZIP attachment
2. Create a file in OneDrive
3. Extract Archive (Zip extracts to CSV)
4. Marks email as read
5. Move or Renames CSV
6. Deletes ZIP file
So each time this specific email arrives it overwrites the current CSV in that folder so it is the newest version each time.
Now I am trying to replicate this for my shared mailbox however have found after creating the above that the shared mailbox flow using a shared Teams directory needs to use SharePoint and thus my trouble begins.
I have gotten this far but need help with how to rename the file and delete the ZIP.
1. When email arrives in shared mailbox with a ZIP attachment
2. Create a file in SharePoint
3. Extract Folder (Zip extracts to CSV)
4. Marks email as read
5. Supposedly here I need to use "Send HTTP request to sharepoint" to rename the file however the file that is extracted contains the name of the report and date at the end thus the name is not consistent.
I have tried using ID in the file name in the api/web/getfileby ID, but get badrequest error, same if I try adding get file properties before the send to http.
I am assuming this SHOULD be easy for someone experienced but its driving me crazy :)