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 / find duplicate and upd...
Power Automate
Answered

find duplicate and update status value to Duplicate item

(1) ShareShare
ReportReport
Posted on by 103

I appreciate it if you can help me to build a workflow for this SharePoint list. I tried multiple methods but for some reason, it's updating the status for all new items even though it's not duplicate.

 

  1. When the item is created
  2. Search Testid duplicate
  3. if a duplicate testid is found then update the most current date time item Status value to "Duplicate item"
  4. Send an email to Manager- duplicate item found in the list take appropriate action. 

Dhaval2002p_0-1679430157394.png

 

 

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,975 Most Valuable Professional on at

    Hi @Dhaval2002p 

     

    Try the following:

     

    image.png

    image.png

     

    image.png

    image.png

     

    Final Flow 

     

    image.png

     

    Above change the filter query. In your case use TestId eq 'map the trigger value when Item created'.

     

    If you status column is plain text then under the Update Item set that value. If its a single choice field please have a look at my tutorial video about to update the choice column in SharePoint.

     

    https://www.youtube.com/watch?v=eKsVF0om0mk

     

    Thanks

     

    Thanks

  • Dhaval2002p Profile Picture
    103 on at

    workflow error at "GetIitems' 

    I tried Testid eq'Testid'  and also testid eq'created'

    both fail

     

    Dhaval2002p_0-1679495014806.png

     

  • abm abm Profile Picture
    32,975 Most Valuable Professional on at

    Hi @Dhaval2002p 

     

     

    I can see you are trying to filter against created, which is a date field. You need to map the TestId from the trigger (very first step). See where I am mapping in my earlier post Title eq 'Name' where name is mapped from the very first step.

     

    Thanks

  • Dhaval2002p Profile Picture
    103 on at

    You mean Testid eq 'Testid'?

    Dhaval2002p_0-1679497809347.png

     

  • abm abm Profile Picture
    32,975 Most Valuable Professional on at

    Hi @Dhaval2002p 

     

    "Search Testid duplicate" this is what you mentioned so it should be.

  • Dhaval2002p Profile Picture
    103 on at

    workflow run successfully but the status didn't update for the duplicate item. I have a very basic knowledge of programming. Sorry for taking your time. 

    2023-03-22_12-06-59.jpg
    2023-03-22_12-06-26.jpg
    2023-03-22_12-06-41.jpg
  • abm abm Profile Picture
    32,975 Most Valuable Professional on at

    Hi @Dhaval2002p 

     

    Have a look at carefully what I suggested earlier

     

    image.png

     

    That IF condition should be outside the loop. Also if your TestId is a numeric column you don't need single quotes under the Filter query.

     

    image.png

    TestID eq TestID (Here without the quotes)

     

     

     

    Thanks

  • Dhaval2002p Profile Picture
    103 on at

    error, I attached the full workflow with a loop 

    5.jpg
  • abm abm Profile Picture
    32,975 Most Valuable Professional on at

    What is the error. I can see the flow? Can't see what error you getting.

  • Dhaval2002p Profile Picture
    103 on at

    Dhaval2002p_0-1679506210740.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

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 378 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 273 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 135 Most Valuable Professional

Last 30 days Overall leaderboard