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

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Power automate flow fo...
Power Automate
Unanswered

Power automate flow for auto creation of records in a table based on a logic

(0) ShareShare
ReportReport
Posted on by 10

Hello All,

 

I need help in if and how the following logic can be implemented with a PowerAutomate flow.

 

Code Logic:

  1. Get distinct list of suppliers from Supplier portfolio table(SupplierId is a lookup column)
  2. For each supplier get the list of activities to a collection - loop1 (ActivityId is a lookup column)
  3. Now there are N collections created
  4. Sort the collections by count of elements in desc order
  5. For each collection, iterating in a loop, check if each item is present in any other subsequent(next in the sorted order) collections(not the previous ones)  and remove the elements of current collection from other collections which are  - inner loop2
  6. Now insert each collection to a package table.

 Please help me with some references to looping, collections and sorting required for the logic. I am also facing many errors while applying filters to lookup columns. Appreciate any help.

 

Thanks,

Haripriya

Categories:
I have the same question (0)

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 237 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 176 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 96 Super User 2026 Season 1

Last 30 days Overall leaderboard