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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to collect the dat...
Power Automate
Answered

How to collect the data fetched from IF condition (True)

(0) ShareShare
ReportReport
Posted on by 280

Hi All,

What is the formula if I want to use the output (true) of my IF statement to set as a variable so I could collect the data from SharePoint?

Here is the scenario,

-Lookup of the same items from List1 to List2

-If GroupName from List1 is NOT FOUND in List2, it will send an email to the AccountOfficer

-I wanted to create a table with the unique items and send it to each AccountOfficer without the loop

In my flow, Officer 1 is receiving 3 emails while Officer 2 is receiving 2 emails

Please give me solution on how to send only 1 email per Officer under the same Group Name without ruining my Lookup function. Thank you in advance!

scorpio24_1-1681353574651.png

scorpio24_0-1681353505635.png

 

 

 

Categories:
  • Verified answer
    v-zhoqian-msft Profile Picture
    Microsoft Employee on at

    Hi @scorpio24 ,

     

    Based on your description, I have made a simple test for your reference.

     

    vzhoqianmsft_0-1681370669585.png

    vzhoqianmsft_1-1681370977207.png

    vzhoqianmsft_2-1681371147765.png

    vzhoqianmsft_3-1681371177366.png

     

     

     

     

    Best Regards,

    Community Support Team _ habsburg Qian

    If this post helps, then please consider Accept it as the solution to help the other members find it.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 299

#2
11manish Profile Picture

11manish 274 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard