Hello! Please, I need a help.
I´m developing a powerapp app to scan a barcode from an item to return a record.
On the main screen I added a button "Escanear" to read the barcode and at the OnScan property I add the following code:
Set(varScan; BarcodeScan.Value) ;; EditForm(EditForm1_1) ;; Navigate('Alterar Scan Patrimônio';ScreenTransition.Fade)
This way, the app reads the barcode and brings the record to the "Alterar Scan Patrimônio" screen correctly, once it exists.
The problem is when the record does not exist. When this happens, the app shows the screen "Alterar Scan Patrimônio" empty. In this situation I wanted the app to navigate to another screen. I tryed to add the command Navigate to the OnFailure form property but it does not work.
How can I do it?
Thank you in advance!

Report
All responses (
Answers (