cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

How to implement link in button

I need to follow the link while pressing the button

I have used Launch(My URL) but it doesn't work

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Anonymous ,

Do you want to fire a flow or an canvas app when you press a button in your app?

 

If you want to run another app when you press a button in your app, I think the Launch function could achieve your needs. Firstly, you need to get the Web Url of your app you want to run, the URL format as below:

https://apps.powerapps.com/play/xxxxxxxx-b460-4121-xxxx-2829402a0061?tenantId=xxxxxxxx-f6a5-41a2-xxxx-9785a9d6c706

or

https://apps.powerapps.com/play/xxxxxxxx-b460-4121-xxxx-2829402a0061

You could find the Web Url of your app as below:4.JPG

On your side, you should type the following formula within the OnSelect property of the Button:

Launch("https://apps.powerapps.com/play/xxxxxxxx-b460-4121-xxxx-2829402a0061?tenantId=xxxxxxxx-f6a5-41a2-xxxx-9785a9d6c706")

or

Launch("https://apps.powerapps.com/play/xxxxxxxx-b460-4121-xxxx-2829402a0061")

Please check if you have specified a proper app web url within your Launch function.

 

If you want to fire a flow from your app using Launch function, I afraid that there is no way to achieve your needs. If you want to fire a flow from an app, you need to add your flow connection in your app, then add a button within your app, set the OnSelect property to following:

'FlowName'.Run(...)

More details about firing a flow from an app, please check the following article or video:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/using-logic-flows

https://www.youtube.com/watch?v=1wl9AtxWdkg

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
mdevaney
Super User
Super User

@Anonymous 

If you input the following code into the button's OnSelect property it should take you to Google.  Give it a try first and then replace with your own URL

 

Launch("https://www.google.ca")

 

If this does not work, can you please give more details?

 

---

Please click "Accept as Solution" if my response helped to solve your issue so that others may find it more quickly.  If your thought the post was helpful please give it a "Thumbs Up."

Anonymous
Not applicable

It goes to the goole right but not to my site. I need to go to the https://emea.flow.microsoft.com/manage/environments/Default-aca3c8d6-aa71-4e1a-a10e-03572fc58c0b/app...

 

to see all request rely on me

@Anonymous 

I was able to build a button that takes me to the Approvals Received screen so I believe the Launch() function is not the issue.  It must be something else.

What do you mean by the link failed?  Do you get a 404 page not found error?  Does it ask you to login?  Does it take you to an unexpected screen?  I'll need more details on the error to diagnose what is going on.

Anonymous
Not applicable

The button is nit active with my link. Now I think that this problem is due to the fact that I'm trying to connect to the link of intranet 

@Anonymous

Can you post a screen capture of what happens when you click the button?

Hi @Anonymous ,

Do you want to fire a flow or an canvas app when you press a button in your app?

 

If you want to run another app when you press a button in your app, I think the Launch function could achieve your needs. Firstly, you need to get the Web Url of your app you want to run, the URL format as below:

https://apps.powerapps.com/play/xxxxxxxx-b460-4121-xxxx-2829402a0061?tenantId=xxxxxxxx-f6a5-41a2-xxxx-9785a9d6c706

or

https://apps.powerapps.com/play/xxxxxxxx-b460-4121-xxxx-2829402a0061

You could find the Web Url of your app as below:4.JPG

On your side, you should type the following formula within the OnSelect property of the Button:

Launch("https://apps.powerapps.com/play/xxxxxxxx-b460-4121-xxxx-2829402a0061?tenantId=xxxxxxxx-f6a5-41a2-xxxx-9785a9d6c706")

or

Launch("https://apps.powerapps.com/play/xxxxxxxx-b460-4121-xxxx-2829402a0061")

Please check if you have specified a proper app web url within your Launch function.

 

If you want to fire a flow from your app using Launch function, I afraid that there is no way to achieve your needs. If you want to fire a flow from an app, you need to add your flow connection in your app, then add a button within your app, set the OnSelect property to following:

'FlowName'.Run(...)

More details about firing a flow from an app, please check the following article or video:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/using-logic-flows

https://www.youtube.com/watch?v=1wl9AtxWdkg

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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 (2,178)