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 / Get count from one SP ...
Power Automate
Unanswered

Get count from one SP list to update another

(0) ShareShare
ReportReport
Posted on by 557

Hello, I have two SharePoint lists (Tracker) and (Matrix).  I'm trying to build a flow that goes to the Tracker list, gets the count for each Unique Issues and updates the count on the Matrix table.  Note that there are hundreds of different types of UniqueIssues.  See desired result:

Tracker Matrix 
UniqueIssues UniqueIssuesCount
A A9
A B8
A   
A   
A   
A   
A   
A   
A   
B   
B   
B   
B   
B   
B   
B   
B   
Categories:
I have the same question (0)
  • v-yetonggu-msft Profile Picture
    on at

    Hi @joel914823 ,

    I did a test for your reference.

    In my scenario:

    My SharePoint Tracker list:

    vyetonggumsft_3-1710427040311.png

    My SharePoint Matrix list:

    vyetonggumsft_5-1710427200281.png

    My Flow:

    vyetonggumsft_0-1710426510285.pngvyetonggumsft_1-1710426629484.png

    item()?['UniqueIssues']
    union(body('Select'),body('Select'))

    vyetonggumsft_4-1710427175502.png

    length(body('Filter_array'))

    Best Regards,

    Sunshine Gu

  • joel914823 Profile Picture
    557 on at

    Thanks so much @v-yetonggu-msft   it seems this would work.  The uniqueissues item on the  matrix  would already be created, how would I tailor this to just update the count on the matrix table.  I tried to do a Get items of the matrix at the top, but then I can't do an update item within the apply to each.  

  • v-yetonggu-msft Profile Picture
    on at

    Hi @joel914823 ,

    I made changes to my previous flow, deleted the Create item, added Get items to the end of compose 2 to get the Matrix list, set ‘UniqueIssues eq '@{items('Apply_to_each')}'’ in the Filter Query, and then updated the item.

    My Matrix List before:

    vyetonggumsft_3-1710472886776.png

    Please check this test:

    vyetonggumsft_0-1710472377230.png

     

    vyetonggumsft_1-1710472585570.png

    UniqueIssues eq '@{items('Apply_to_each')}'

    My Matrix List After:

    vyetonggumsft_4-1710472928870.png

    Best Regards,

    Sunshine Gu

    If I solve your problem, please mark my response as a solution so I can help more people who are experiencing this challenge in the future.🤗

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