cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Frequent Visitor

Re: Patch then navigate

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
Highlighted
Helper IV
Helper IV

Re: Patch then navigate

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 )

Highlighted
Frequent Visitor

Re: Patch then navigate

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

Highlighted
Frequent Visitor

Re: Patch then navigate

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

Highlighted
Frequent Visitor

Re: Patch then navigate

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
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,744)