web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Launch function syntax?

(2) ShareShare
ReportReport
Posted on by 489 Super User 2025 Season 2
Hello!
 
I am not getting the launch function syntax correct. I've tried numerous things.
 
I want to place the item number after the last forward slash in the URL. No query string is required for the web page.
When I hardcode an item number in the URL it works fine but I want to pass the value from a text input field.
I've also tried to put TextInput1.Text inside the quotes of the URL. That did not work.
 
Here is my latest attempt ...
 
Launch("https://cert.website/itempricing/",TextInput1.Text,LaunchTarget.New)
 
TextInput1.Text = 589383
 
This is the URL when the browser tab opens:
 
 
All I need is the item number after the last / in the URL.
 
Appreciate any help!
I have the same question (0)
  • timl Profile Picture
    35,765 Super User 2025 Season 2 on at
    Launch function syntax?
     
    Thanks for the update - I'm glad that worked.
     
    With regards to the at-message thing, I find it only works within a very short period of opening a post. If I refresh the page, click reply to post, and immediately at-message someone, it tends more likely to work.
  • Cgangweg01 Profile Picture
    489 Super User 2025 Season 2 on at
    Launch function syntax?
    Hello!
     
    Thank you both.
     
    timl, (not sure why the at-message thing does not work for people in the thread, but it doesn't!)
    I was able to use that basic & expression. Worked like a charm.
     
    DBO DV,
    Thank you for the other suggestions which obviously would work with web pages designed that way.
    I wish the MS learn site had reference to the basic method for sites as such.
     
  • Verified answer
    timl Profile Picture
    35,765 Super User 2025 Season 2 on at
    Launch function syntax?
     
    LaunchTarget.New is the default option, so there's no need to pass this option. Therefore, an easier alternative is to just do this:
     
    Launch("https://cert.website/itempricing/" & TextInput1.Text)
     
    This syntax will produce the following URL:
    https://cert.website/itempricing/589383
  • Suggested answer
    DBO_DV Profile Picture
    4,705 Super User 2025 Season 2 on at
    Launch function syntax?
    Hey, 
     
     
    I would assume that inside your Textinput1 is the number 589383. But the URL now doesnt know what to search for. You need to analyze the URL on the Website. 
    Maybe there is something like this:
    To achieve this you wouls need to create your Launch fonction like this: 
    Launch("https://cert.website/itempricing/",Item:TextInput1.Text,LaunchTarget.New)
    //Or
    Launch("https://cert.website/itempricing/","Item", TextInput1.Text,LaunchTarget.New)
     

    If this solved your problem, please mark it as Solved to help others find the solution faster.
    If you found it helpful, consider giving it a Like to support each other in this community!

    Thanks, and happy building!

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 998 Most Valuable Professional

#2
developerAJ Profile Picture

developerAJ 426

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 257 Super User 2025 Season 2

Last 30 days Overall leaderboard