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 / Find Contacts on an Ac...
Power Automate
Unanswered

Find Contacts on an Account that Meet Criteria Then Write Them to an Excel File

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

 

What's the best way to use a flow to find contacts on a Dynamics 365 online account that meet specific criteria then write them to an Excel file? 

 

It needs to be done without getting  Apply to Each involved which happens with the "List records" action.  The Apply to Each causes multiples to be written to the Excel file. If there are 4 contacts on the account and 2 of them meet the criteria then each record gets written to Excel 8 times.  This is not good since some accounts have 20 or more contacts. I just want the selected contacts to be written once. Is it possible?

 

Thanks,

Beth

 

 

 

 

Categories:
  • alrezac Profile Picture
    Microsoft Employee on at

    Hi,

     

    looking through your ask here you seem to be asking for some conflicting things. If you do a search for contacts even with a filter, that could potentially return multiple results (even if it doesn't). Regardless, you should be able to use conditions within your For Each to skip the records that you do not want to write. You would just need to be cleaver with how you are passing the values and what you are filtering by.

     

    Regards,

     

    Alex

     

    -------

     

    Community Support Team _ Alex Rezac
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • VictorIvanidze Profile Picture
    13,083 on at

    I guess it can be done using MS GRAPH, but please do not ask how exactly - looks like a task for a consultant.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @alrez thanks for responding.

     

    I was able to use filters so that only the contacts that meet the criteria are getting written to Excel. The problem is they are written too many times!  For now I guess I'll just use remove duplicates in Excel and go on with my life.  

     

     

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @VictorIvanidze thanks for responding.

     

    I won't ask how to use MS GRAPH.  😄

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 426

#2
11manish Profile Picture

11manish 349 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard