Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

Is it possible to loop through all Accounts using MS Flow?

Posted on by 5

Whenever a user triggers an event in opportunity, I would like a Flow to loop through all accounts and attach ones with certain attributes.

Is this even possible? If so any help would be greatly appreciated.

Thanks all.

  • ABL_Dub Profile Picture
    ABL_Dub 5 on at
    RE: Is it possible to loop through all Accounts using MS Flow?

    Thanks a million. This worked for me!

  • Suggested answer
    Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Is it possible to loop through all Accounts using MS Flow?

    Yes, is is possible. Create a new flow and use the Common Data Service (current environment) connector. The old Dynamics 365 and common data service connectors are old and have not been updated recently. Most likely this connector will replace the other two in the near future.

    After the trigger use the List Records action to retrieve all the account records, and then use the Apply to all Control.

    You can add any data manipulation after.

    pastedimage1580915529934v1.png

    Hope this helps.

  • Verified answer
    meelamri Profile Picture
    meelamri 13,204 User Group Leader on at
    RE: Is it possible to loop through all Accounts using MS Flow?

    Yes you can, you don't need to loop through all account. You can filter with odata querry. Refer to this screenshot. My example is only for guidance. 

    1452.flow1.png

    flow2.png

    flow3.png

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans