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 Apps
Unanswered

lookup issues

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Patch(Tabela3_2; LookUp(Tabela3_2; Equipamento = varEquipamento.Equipamento); {EstoqueAtual: varEstoque});; Notify("Saida efetuada com sucesso");;Navigate(TelaInicial;ScreenTransition.Cover)

 

afternoon guys i would like to make some questions 

as you can see i'm tried a lot to correct the patch function error

everytime i submit the form to the excell its update the old data, but also build a new line with the last input

can you guys answer me how to it not build a new line ?

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Anonymous 

    First of all, Excel is a terrible datasource.  SharePoint is much better and I would recommend that you move your data there.  Your formula will notify that there is a success and navigate to another screen whether the patch works or not.  Also, Ideally, the Lookup should identify a single record in your table.  It is much better to use an ID value in the lookup and your table should have a sequence of numbers for each record that is not replaced or changed.  If not that , then each item should have a product code and that should be used in the LookUp().  However, given what you have,  I suggest the following:

     

    Patch(
     Tabela3_2;
     LookUp(Tabela3_2; Equipamento=varEquipamento.Equipamento);
     {
     EtoqueAtual:varEstoque
     }
     );;
     If(
     // check if there were any errors when the patch was submitted
     !IsEmpty(Errors(Tabela3_2));
     // if true, show any error message
     Notify(
     Concat(Errors(Tabela3_2); Column&": "&Message);
     NotificationType.Error
     );
     // else, notify success and navigate away to next screen
     Notify("Saida efetuada com sucesso"; NotificationType.Success);;
     Navigate(TelaInicial;ScreenTransition.Cover)
     )

     

     

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard