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 / If statement with a Na...
Power Apps
Unanswered

If statement with a Navigate(Thisitem Issue

(0) ShareShare
ReportReport
Posted on by 2

 

 

Hi all, first post, just getting to grips with PowerApps.

 

I have a Gallery that i am using as a list of 'Links', some of the links are web URLs and therefore use the Launch function and some are Screens therefore need the Navigate function, I have connected to a SQL table see below and the field name is URL.

 

Capture1.PNG

 

I expected this to just work out the box, but doesnt seem that way. the code below is OnSelect on the NextArrow Icons shown below.

Capture2.PNG

 

Capture3.PNG

Thanks in Advance

Simon

 

Categories:
I have the same question (0)
  • PavanKumar Profile Picture
    479 on at

    Hi, Just check what value are you getting in Thisitem.URL (may be some encrypted values) also in Launch once try hardcoded url and check if its working e.g. Launch(https://www.google.com).

     

    This may give you better direction. Please let me know if you have any further questions/doubts.

     

    If this answer helps please mark it as verified.

     

    Regards,

    Pavan Kumar Garlapati

  • sikelsh Profile Picture
    2 on at

    Hi, sorry if I wasnt clear.

     

    The Launch is working fine, it picks the correct URL from the table and it opens fine, however this only works when I hardcode the Screename in the Navigate section (as the statement isnt accepted as correct when read from table) as below, what I have done is included the Screename in the table in the URL field

     

    If("http" in ThisItem.URL, Launch(ThisItem.URL), Navigate(StaffSuggestion,ScreenTransition.Fade))

     

    Regardless of the IF statement the function Navigate(ThisItem.URL,ScreenTransition.Fade) doesnt appear to work.

     

  • PavanKumar Profile Picture
    479 on at

    Hi,

     

    I assume you have between 5 - 10 screens to navigate. Unfortunately Navigate function expects screen type of parameter. so in your case you can write within your if function.

     

    Switch( ThisItem.URL, "Screen1",Navigate(Screen1, Fade), "Screen2",Navigate(Screen2, Fade), "Screen3",Navigate(Screen3, Fade), "Screen4",Navigate(Screen4, Fade) ).

     

     

    Mark it as verified if it answers your question.

     

    Regards,

    Pavan Kumar Garlapati

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard