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

check for unique record

I have problem with check unique record but come back with error message.

Wonder if there is any work around.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: check for unique record

Hi  @Titiwai ,

 

Could you please share more about your scenario? What is the design thought of your Apps?

As we can know from the error information, 'Cash_Date' is the unique column, and what you are patching is duplicate. 

So I guess you want to know how to check it and prevent the error before the patch, right?

I recommend to set the button's Display Mode to prevent the error by checking if the value is duplicate, so set DisplayMode of button to If(Today() in Table2.Cash_Date, DisplayMode.Disabled,DisplayMode.Edit) .

If the value is unique, the button could be clicked, if the value is duplicate, the button would be disabled.

Best regards,

Sik

 

View solution in original post

1 REPLY 1
Highlighted
Community Support
Community Support

Re: check for unique record

Hi  @Titiwai ,

 

Could you please share more about your scenario? What is the design thought of your Apps?

As we can know from the error information, 'Cash_Date' is the unique column, and what you are patching is duplicate. 

So I guess you want to know how to check it and prevent the error before the patch, right?

I recommend to set the button's Display Mode to prevent the error by checking if the value is duplicate, so set DisplayMode of button to If(Today() in Table2.Cash_Date, DisplayMode.Disabled,DisplayMode.Edit) .

If the value is unique, the button could be clicked, if the value is duplicate, the button would be disabled.

Best regards,

Sik

 

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (5,838)