cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
theisogunro
Helper IV
Helper IV

Conditions and navigate

The weirdest behavior is happening in my PowerApps, and I've been trying different things for the past 4 hours but to no avail. 

 

I have a canvas app with a SharePoint list as a back-end.  I also have a power automate that generates and email with deep linking.

I have two email notifications based on the Request type (Help Desk or Project Request).  The query string looks something like this,

https://play.apps.appsplatform.us/play/zxzxzejd?tenantid=23kl23&requestID=34&Type="ProjectRequest"

 

Set(itemRecord,LookUp('Request Box',ID=Value(Param("requestID"))));

If(Param("Type")="HelpDesk",Navigate(ProjectRequest),Navigate(HelpDesk));

//For testing
Notify(IsMatch(Param("Type"),"HelpDesk")&"---"&Param("Type")&"-"&reqType);

 

For some odd reason, even though, Type="ProjectRequest" in the querystring, it is always false and always navigates to HelpDesk no matter the value.

 

Any ideas why this isn't working?

 

Thanks!

 

1 ACCEPTED SOLUTION

Accepted Solutions

@theisogunro ,

If is declared deprecated is will be removed in the future, so i don't think is a smart idea to keep using OnStart() property if you want to use the app on a long term.

In StartScreen property use only a formula to indicate where the app starts. Set the variables values on OnVisible property of the screens. 

View solution in original post

3 REPLIES 3
gabibalaban
Dual Super User
Dual Super User

@theisogunro,

Try to use the StartScreen property of the app, rather than onStart, when you choose the starting screen:

If(Param("Type")="HelpDesk",ProjectRequest,HelpDesk)

The navigation from OnStart() was declared deprecated several months ago.

When I use startScreen, I get an error that says you can't use this property to change values elsewhere in the app.

OnStart() was deprecated but I enabled it because StartScreen wasn't behaving.

@theisogunro ,

If is declared deprecated is will be removed in the future, so i don't think is a smart idea to keep using OnStart() property if you want to use the app on a long term.

In StartScreen property use only a formula to indicate where the app starts. Set the variables values on OnVisible property of the screens. 

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (1,155)