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 / Adding navigate after ...
Power Apps
Answered

Adding navigate after successful patch?

(0) ShareShare
ReportReport
Posted on by 21

Hello,

I want to navigate to another screen if patch has been performed successfully but can't figure out the syntax. Please help!

 

If(IsBlank(LookUp(Clerical_PRD,Title=Trim(DataCardValue40_2.Text) && City = Trim(DataCardValue3_2.Text)&& Proj_Date = (DataCardValue28_1.SelectedDate))),

Patch(Clerical_PRD, Defaults(Clerical_PRD),

{

   Title:Trim(DataCardValue40_2.Text),

   Status: DataCardValue12.Selected,

   City:Trim(DataCardValue3_2.Text),

   Shop:DataCardValue2.Selected,

   Project: Trim(DataCardValue29_2.Text),

   Work_Type:Trim(DataCardValue5.Text),

   Proj_Date:DataCardValue28_1.SelectedDate

  }),

      Notify("This Address/City/Work Type/Date already exists",NotificationType.Error,3000);

  );

Categories:
  • Verified answer
    TheRobRush Profile Picture
    11,128 Moderator on at
    IfError(
    If(IsBlank(LookUp(Clerical_PRD,Title=Trim(DataCardValue40_2.Text) && City = Trim(DataCardValue3_2.Text)&& Proj_Date = (DataCardValue28_1.SelectedDate))),
    
    Patch(Clerical_PRD, Defaults(Clerical_PRD),
    
    {
    
     Title:Trim(DataCardValue40_2.Text),
    
     Status: DataCardValue12.Selected,
    
     City:Trim(DataCardValue3_2.Text),
    
     Shop:DataCardValue2.Selected,
    
     Project: Trim(DataCardValue29_2.Text),
    
     Work_Type:Trim(DataCardValue5.Text),
    
     Proj_Date:DataCardValue28_1.SelectedDate
    
     }),
    
     Notify("This Address/City/Work Type/Date already exists",NotificationType.Error,3000);
    
     ), false, Navigate(pageName, navigateType))
  • michelledroll1 Profile Picture
    21 on at

    Thank you so much!

  • michelledroll1 Profile Picture
    21 on at

    I spoke too soon.

    I am trying to navigate if I don't have a condition and not a not a system error.

  • TheRobRush Profile Picture
    11,128 Moderator on at

    If this condition,

    IsBlank(LookUp(Clerical_PRD,Title=Trim(DataCardValue40_2.Text) && City = Trim(DataCardValue3_2.Text)&& Proj_Date = (DataCardValue28_1.SelectedDate)))

     

    is NOT true in your first example it goes to here INSTEAD of making a patch

    Notify("This Address/City/Work Type/Date already exists",NotificationType.Error,3000);

     

    you would just add your navigate there.

  • michelledroll1 Profile Picture
    21 on at

    Sorry, I'm still not understanding.

    Is there a way to tell the app to go to another screen if the patch was successful?

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 360 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 325

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard