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 Apps / Prevent related duplic...
Power Apps
Answered

Prevent related duplicate records

(0) ShareShare
ReportReport
Posted on by 1,168
Hi,
 
I have Table A with a record say called A1
 
I also have Table B that has a 1 to many relationship that has say 4 records in it. Inside that table I have a whole number column called position.
 
So Table B has the following records
 
Name     TableARecord.    Position
B1          A1                      1
B2          A1                      2
B3          A1                      3
B4          A1                      4
B5          A1                      5
 
 
I need to make sure that position is only ever used once BUT only relating to the related record
 
So if I was to create another record in Table B against at A1 record with a position of 2, I would get a error message.
 
Hope this makes sense.
 
Wondering what best approach to solving this would be?
 
Thanks in advance
 
Todd
  • Verified answer
    ronaldwalcott Profile Picture
    3,914 Moderator on at
    You could create a unique key using all the columns Name, Position and the TableARecord identifying column. 

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 226 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 191 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 167

Last 30 days Overall leaderboard