cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dcullen
Helper I
Helper I

Two arguments in the form OnSuccess() event

I have a form and when I submit it and it is good the OnSuccess() event is triggered.

 

I then want it to firstly execute a flow, and then Navigate to a success screen. This is my attempt.

 

 

PowerAppsbutton.Run(EmailBodyHtml.HtmlText, User().Email); Navigate(Screen_Success)

 This appears to be the incorrect format as I am getting warning symbols saying Invalid number of arguments.

 

What is the correct way to do this?

1 ACCEPTED SOLUTION

Accepted Solutions
JRaasumaa
Memorable Member
Memorable Member


@dcullen wrote:

I have a form and when I submit it and it is good the OnSuccess() event is triggered.

 

I then want it to firstly execute a flow, and then Navigate to a success screen. This is my attempt.

 

 

PowerAppsbutton.Run(EmailBodyHtml.HtmlText, User().Email); Navigate(Screen_Success)

 This appears to be the incorrect format as I am getting warning symbols saying Invalid number of arguments.

 

What is the correct way to do this?


 

Try adding a ScreenTransition.None to your Navigate.

 

Navigate(Screen_Success, ScreenTransition.None)

View solution in original post

1 REPLY 1
JRaasumaa
Memorable Member
Memorable Member


@dcullen wrote:

I have a form and when I submit it and it is good the OnSuccess() event is triggered.

 

I then want it to firstly execute a flow, and then Navigate to a success screen. This is my attempt.

 

 

PowerAppsbutton.Run(EmailBodyHtml.HtmlText, User().Email); Navigate(Screen_Success)

 This appears to be the incorrect format as I am getting warning symbols saying Invalid number of arguments.

 

What is the correct way to do this?


 

Try adding a ScreenTransition.None to your Navigate.

 

Navigate(Screen_Success, ScreenTransition.None)

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (35,831)