cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
considerITman
Frequent Visitor

Patch then navigate

Hi folks,

 

I use Patch on the submit-button of an edit form. Right after the patch, a navigation event is supposed to happen.

Basically:

Patch(Stuff to be patched);Navigate(Screen to be navigated to)

 

This is not what happens, though. The patch works and the data is commited to my datasource, but the navigate never happens - the app just stays on the current screen (the one with the edit form).

 

Does anyone have an idea what that could be?

1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

I think you are missing a semicolon (need to use 2), it should be:

Patch(what you want to patch);;Navigate(where you wanna go)


View solution in original post

4 REPLIES 4
KimberlyM
Helper IV
Helper IV

Here is what I have working in my app. Not 100% sure what you have going on but maybe try adding the screen transition.

Patch(SharePointList,CurrentSelectedItem, {

   //Stuff to patch

});

Navigate( Dashboard, ScreenTransition.Fade )

Anonymous
Not applicable

I think you are missing a semicolon (need to use 2), it should be:

Patch(what you want to patch);;Navigate(where you wanna go)


View solution in original post

Thanks for taking a swing at it, but the transition didn't change anything 😐

Two semicolons. I would never have thought of that!
Found this post on the topic, too: 
https://powerusers.microsoft.com/t5/General-Discussion/Two-Functions-in-Button/m-p/14129#M6198
Thanks for the help!

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,724)