Attached is a picture of my flow and it has been suggested that I post here to see if I can make some optimisations to my flow to reduce the number of requests.
Here is the jist of my flow:
1. Trigger is receiving an email
2. Convert the body of the email to text
3a Left (Compose actions), I go through a number of steps that clean out unnecessary text from the email body. I have each step separate to allow easy diagnosis and so I don't have so many nested commands I don't know what I am doing. These are all pretty much just "replace" commands.
3b Right (Variables), this is where I set up my variables that I use later in my flow, some have values and some are blank as I have to "reset" my variables in my later Do Until
4, 5, 6, 7 are checks that I make, if they are true the flow will terminate, if false they do nothing but allow the flow to continue
8, 9, 10 these set up how many iterations I need to be doing in my Do Until
11 initialise another variable to 0
12 Do Until, this will run until there are no more email addresses as determined by steps 8, 9, 10
12.1 Get my first 100 emails
12.2 Put these emails into an array with the content we are going to use
12.3 Join these values together
12.4 Build my JSON body
12.5 Send via API my emails
12.6 Clear my email array (using blank array set up earlier)
12.7 As Power Automate does not allow self-referencing, I do some math here
12.8 I then set the variable I use from the previous temporary variable
12.9 same as 12.7
12.10 same as 12.8
And then there is a catch if there is an issue with my Do Until.
So having explained what each of the steps do, can anyone offer some suggestions on how I might be able to optimise my flow without reducing the readability and clarity as it is currently.
Thanks