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.
Title | Link |
www.google.com. | |
Wikipedia | https://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.
Solved! Go to Solution.
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.
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.
JR-BejeweledOne Thank you. This was much simpler
User | Count |
---|---|
125 | |
87 | |
86 | |
75 | |
69 |
User | Count |
---|---|
215 | |
180 | |
139 | |
97 | |
83 |