web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Solution brainstorming...
Power Automate
Unanswered

Solution brainstorming for flow with conditions

(1) ShareShare
ReportReport
Posted on by 173

I've built a flow that sends users an email when their request was completed. The last step of the flow is a switch. On "Completed" it sends the user an email. 
completed switch.JPG

Sometimes, I go back into the SharePoint item and make changes to the project. Anytime I do that, it sends this email again because the status remains completed (the changes I make triggers the flow since it's a "when Item is created or modified" flow). Here is the beginning of my flow:
project completion flow.JPG

I would like for the flow to only send one email when the status was set to complete, but not every time I make a change. Is the only way to do that, to add an "update item" step to the end and have it change the status to something else (i.e. archived)? Or is there a more elegant solution? 🙂 

Categories:
I have the same question (0)
  • Verified answer
    abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @oaghaei 

     

    Add another column in your SharePoint list called 'Send Email' Yes/No. Once the email is send then update the 'Send email' column to Yes. Also add an if condition after the trigger to check the status is complete and Send email is 'No' then send the email.

     

    Thanks

  • oaghaei Profile Picture
    173 on at
    Thank you! That's a better solution than mine! 🙂 @abm
  • oaghaei Profile Picture
    173 on at

    @abm I am re-reading your reply. I think I need a little more clarification. I added the Yes/No field to my SharePoint. However, I do not fully understand the modifications needed for the flow. Are you saying that instead of the switch I should create a condition for the status and the Yes/No field?

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @oaghaei 

     

    Step 1: Add a new boolean column in SharePoint

    Step 2: Flow Modifications

                (a) After send email, add a new step called update SharePoint list ad set the Boolean flag to Yes

                (b) Add a check in before the email whether the Boolean flag is No. Think you may need to remove the switch and add this as an if so that you can add your additional check whether the status is complete or not

                     If (Status == Completed && Boolean Flag == false) then

                             Send email

                             Update Boolean flag to yes

                     End If

     

    Note: if you want you can keep the switch but you may need to maintain another If condition to check the Boolean flag is No before sending email. I would personally remove the switch and add all in one IF condition.

     

    Thanks

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard