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 / Launch function syntax?
Power Apps
Answered

Launch function syntax?

(2) ShareShare
ReportReport
Posted on by 870 Super User 2026 Season 1
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!
Categories:
I have the same question (0)
  • Suggested answer
    Daniel Bocklandt Profile Picture
    5,151 Super User 2026 Season 1 on at
    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!

  • Verified answer
    timl Profile Picture
    36,774 Super User 2026 Season 1 on at
     
    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
  • Cgangweg01 Profile Picture
    870 Super User 2026 Season 1 on at
    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.
     
  • timl Profile Picture
    36,774 Super User 2026 Season 1 on at
     
    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.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard