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 / Prevent duplicate file...
Power Automate
Unanswered

Prevent duplicate files tracking a unique ID rather than file name in a library

(1) ShareShare
ReportReport
Posted on by 2

I have a flow that copies a file to a duplicate library when a yes/no box is checked.

This allows up to consolidate all the files in one library but only copy a subset over to a sharing library.

 

The current behavior copies the file to the destination when the box is checked, and deletes the file in the destination library when the box becomes unchecked.  If the file content is updated in the parent, the copy is set to overwrite in the destination.

 

The current issues are- if the file is renamed, a new file gets created, making a duplicate file in the destination library.

Each file has a unique ID generated when the file is created in the parent library. 

I'd like flow to check the unique ID and NOT the file name to overwrite / update the file

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

    Hi @RP5 

     

    You mentioned each file has a unique ID generated when the file is created? Is that a custom unique Id? Please explain bit more about this.

     

    Thanks

  • RP5 Profile Picture
    2 on at

    Hello,

     

    The "unique ID" is generated in a user defined column using a flow that is running in the library.

     

    It triggers whenever a new item is added to the library.

     

    The flow "updates file properties" in the unique ID column and combines a short string, designating the product line, asset type, with the sharpoint numeric ID in the primary library.

     

    The unique ID allows me to trace it back to the parent library. This is needed because the destination library will be a consolidation point for mutiple teams/ product line assests are compiled.

     

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

    Hi @RP5 

     

    Ok that make sense. So can't you filter using the unique id? A screenshot of your flow is helpful. 

     

    Thanks

  • RP5 Profile Picture
    2 on at

    I'm not sure how to filter or if it would be applicable in this case-

    there are 2 seperate flows

    Flow 1 create unique ID for all itmes uploaded to the library

    RP5_0-1705971930459.png

     

    Flow 2 -If the file is modified AND has a Send to ShowPad column checked

    RP5_1-1705971952566.png

    THEN the item is copied to the test library and all properites are updated, if the send to showpad box is unchecked in the trigger modification, the file deletes- this is the desired behavior

    RP5_2-1705971985883.png

    RP5_3-1705972173441.png

     

     

    The issue comes when the file name is modified- it creates a new file and 

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