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

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.
Anonymous
Not applicable

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,582)