Hi,
I am exploring to replace section of my flow to be specific the 'apply to each' section to improve efficiency of my flow:
So, my flow goes like this:
1. When an email received by shared mailbox then use some filter inside that picks-up email from specific email address with files attached.
2. [For replacement] Get all attachments in an email
3. Get then name of the fist attachment. This is used for naming of the folder in SharePoint later
4. From step 3, it gets first few characters of the file name which is before an underscore
5. Compose preferred folder name in SharePoint which is date today formatted as YYYYMMDD and the result of step 4. Sample: YYYYMMDD_Fund Group
6. Initialize Variable - this is for sharing link
7. Get files properties - this is to check the SharePoint where files will be saved. Location: Shared Documents/Email Attachments
8. Condition - this will check the folder inside SharePoint if step 5 exists or not. If not, create a new folder then generate sharing link. If yes, get sharing link
9. [For replacement] For each file, upload it to the folder defined by step 5.
10. Compose draft - I just posted here the HTML of the email
11. Send an email to recipients and CC'ed persons on the email caused the trigger including output of step 10.
I would like to ask if you can give a run through how to build REST API.