cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Venkat_Veda
Frequent Visitor

Using SharePoint list Item as link to PowerApps Button

Hi,

 

I have a SharePoint list where a list of webpage is available.

 

Now Have to create a button in power apps and when I Click the Button it should go to one of the webpage from the sharepoint list.

 

For example I have a list in SharePoint named webpages and has items below.

TitleLink
Googlewww.google.com.
Wikipediahttps://en.wikipedia.org/

 

 

In Powerapps I created a button for google and it should refer to the link in the Sharepoint list and should launch google.com when pressed.

 

I do not want to use Launch option with url directly in Powerapps as in later days if someone want to change the URL they do not want to change in Powerapps rather do it in Sharepoint.

1 ACCEPTED SOLUTION

Accepted Solutions
JR-BejeweledOne
Super User
Super User

You can do it this way.  For something like this I find it easier to set a complex variable rather than collecting the information.

 

On your App start

 

Set(varURL,
{
  Google: First(Filter(webpages, Title = "Google").Link),
  Wikipedia: First(Filter(webpages, Title = "Wikipedia").Link)

}

)

 

In the OnSelect for your Google button set this:

 

Launch(varURL.Google.Link)

 

This way if the links are changed in the list, your app will retrieve the correct links on start even if they have been updated.

 

 



If you like this post, give it a Thumbs up. If it answered your question, Mark it as a Solution to enable other users find it.

View solution in original post

2 REPLIES 2
JR-BejeweledOne
Super User
Super User

You can do it this way.  For something like this I find it easier to set a complex variable rather than collecting the information.

 

On your App start

 

Set(varURL,
{
  Google: First(Filter(webpages, Title = "Google").Link),
  Wikipedia: First(Filter(webpages, Title = "Wikipedia").Link)

}

)

 

In the OnSelect for your Google button set this:

 

Launch(varURL.Google.Link)

 

This way if the links are changed in the list, your app will retrieve the correct links on start even if they have been updated.

 

 



If you like this post, give it a Thumbs up. If it answered your question, Mark it as a Solution to enable other users find it.
Venkat_Veda
Frequent Visitor

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,979)