Hi so I have a problem. In my approvals, there are 2 people who are having to approve a request. And once both of us approves it, 2 duplicate emails are being sent to the person who has sent the request. How do I make sure that there is only one email being sent as the response and not 2. I do not have any other flows, just this one. I also do not want to make multi-step approvals since I need both approvers to get the approvals at the same time.
Aside that lets say when one of us approves a request and the other person rejects it, there are 2 rejecting emails being sent to the requestor. I need only one rejection email for that as well. How can that be done?
You need to initialize variables, that can be initialized as empty, in the main line of the flow to be able to use them inside a loop. Add an Initialize Variable action just prior to the Start and wait for an approval.
I tried doing what you have done by using 'Append to string variable' but I cant seem to get any options for my name section. Can you help me with that?
Here's a sample I use to gather up comments from multiple responders and send them out by email. The only difference in your case would be what you add to the variable to use in the body of the email later.
Can you please show me an example since I am still confused about it. Thank you.
The key is to not do the Send an Email inside the loop on Responses. Instead use that loop to build the email body from the two responses and then send one email once the loop is completed.