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 / Create Array and check...
Power Automate
Answered

Create Array and check for duplicates against sharepoint list and update or create

(0) ShareShare
ReportReport
Posted on by 174

Hi,

 

Im stuck on a flow that i am building, it seems whatever i do it still will not check the list and create or update.

 

Im trying to build a list of all current users and their groups in MS Shifts.

 

The trigger is the MS Shifts when a shift is created,

 

I first build an array of the data i need in the list, UserID, UserName, GroupID and Group Name.

 

I then use the array and a get Items to check for duplicates using x4 odata filter queries one for each above and a condition of length(body('Get_items')?['value']) greater than 0 . It just doubles up on the items already there?

 

The create and update are done via the following for e.g. the user name @{items('Apply_to_each_4')['User Display Name']}

 

Here is my flow, please help im quite stuck. I cannot understand why it doesn't check for previous entries

 

SomeoneAwesome_0-1662283674208.png

SomeoneAwesome_1-1662283990606.png

 

Categories:
I have the same question (0)
  • Verified answer
    Unknown geen idee Profile Picture
    1,757 on at

    Dear SomeoneAwesome,

     

    Could you perform a de-duplication via a union-function? union().

    Just get 2 full lists of your users and their groups (Current and past) and compare these via union ... then you should get the results you want (only unique items).

     

    Hope this helps, if so, please state so in the thread.

    Happy flowing,

    Koen

     

  • Dhaval2002p Profile Picture
    103 on at

    @SomeoneAwesome @Koen5 Hello, Need workflow help.

    Task: Find a Duplicate item from List B and change the status column value to a Duplicate item
    We receive work from List A to List B
    I work on List B. I created a Choice column called status- and I added choices of New item, Duplicate item, completed, and Under review.

    Sometimes we receive duplicate items in List B from List A, I would like to identify those duplicates every time when a new item is created in List B and I want to change the status to Duplicate item if the manufacturer’s part number is matching.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 997

#2
Valantis Profile Picture

Valantis 810

#3
Haque Profile Picture

Haque 642

Last 30 days Overall leaderboard