cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ingovals
Helper II
Helper II

Constraint based on two fields

Can I put a constraint on a creation ( or modification I guess) of a row based on two fields. So I want to ever only have a singular row which has the same values in these two fields.

 

In my case one is a lookup field, the other a choice fields. Essentially a customer and a year.

 

Your are only allowed to create one report for each customer per year.

 

Business rules seem focused on the entity itself, and not on what exists in the table already.

1 ACCEPTED SOLUTION

Accepted Solutions
dpoggemann
Super User
Super User

Hi @ingovals ,

 

Have you looked at alternate keys for this need?  https://learn.microsoft.com/en-us/power-apps/maker/data-platform/define-alternate-keys-portal 

Hope this helps. Please accept if answers your question or Like if helps in any way.
Thanks,
Drew

View solution in original post

1 REPLY 1
dpoggemann
Super User
Super User

Hi @ingovals ,

 

Have you looked at alternate keys for this need?  https://learn.microsoft.com/en-us/power-apps/maker/data-platform/define-alternate-keys-portal 

Hope this helps. Please accept if answers your question or Like if helps in any way.
Thanks,
Drew

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Users online (6,281)