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 / Preventing Duplicate E...
Power Automate
Unanswered

Preventing Duplicate Entries Based on Two Combined Columns

(0) ShareShare
ReportReport
Posted on by 3
I have a SharePoint list with several columns. I need to prevent users from entering duplicate combinations of Staff ID and Date. I created a calculated column to merge these two fields, but I discovered that calculated columns can't enforce unique values. I've been advised to use a Power Automate flow. Could someone please provide the steps and flow actions needed to achieve this?
Categories:
I have the same question (0)
  • David_MA Profile Picture
    15,367 Super User 2026 Season 2 on at
    For the person who advised you to use Power Automate, what did they suggest you do through Power Automate? A round idea would be:
    • Create a text column in your list to hold the combined value.
    • Add a flow with a trigger when a new item is created.
    • Use a compose action to generate the value to populate in the SharePoint list.
    • Use a Get items action from the SharePoint list with a filter query using the Output of the above compose action in a filter query to see if there are any items in list with the value.
    • Add a condition with a length expression to find how many items are returned from the get items action. The condition will be where the length of what is returned is equal to 0 (zero).
    • On the yes side of the condition, if not items found, update the item from the trigger with the value.
    • On the no side, send an e-mail or do whatever you want to tell the person an item already exists with that value and then delete the item.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 258 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 198 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 136 Super User 2026 Season 2

Last 30 days Overall leaderboard