cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Mtedder
New Member

Targeting SharePoint URL's in a dropdown

I am developing a PowerApps application that needs dynamic SharePoint site destinations. I am looking to have all of my active sites in SP shown in something like a dropdown or combo box. Is this even possible?

 

I've seen posts about SharePoint lists being used, but I want to know if I can target ALL active sites can be targeting instead

 

Thanks,

Matt

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @Mtedder ,

 

You could use graph api to get all sharepoint sites.

https://graph.microsoft.com/v1.0/sites?search=*&select=webUrl

vxiaochenmsft_0-1632807476551.png

 

Or you could use sharepoint rest api to get all sharepoint sites.

vxiaochenmsft_1-1632807554449.png

_api/search/query?querytext='contentclass:STS_Site'&rowlimit=500

Then you could use response action to pass this output to canvas.

 

Best Regards,

Wearsky

 

 

View solution in original post

2 REPLIES 2
eka24
Super User
Super User

Insert a Dropdown and set the  AllowEmptySelection  to true.

Items :

Table({Name:"Site1", Address:"https://bing.com"},
 
OnChange:
Launch( Dropdown3.Selected.Address)
------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
v-xiaochen-msft
Community Support
Community Support

Hi @Mtedder ,

 

You could use graph api to get all sharepoint sites.

https://graph.microsoft.com/v1.0/sites?search=*&select=webUrl

vxiaochenmsft_0-1632807476551.png

 

Or you could use sharepoint rest api to get all sharepoint sites.

vxiaochenmsft_1-1632807554449.png

_api/search/query?querytext='contentclass:STS_Site'&rowlimit=500

Then you could use response action to pass this output to canvas.

 

Best Regards,

Wearsky

 

 

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,113)