cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
gjeh
Responsive Resident
Responsive Resident

populate dropdown with sharepoint libraries

Hello all,

 

I'm trying to populate a dropdown menu with names of all libraries on a specific Sharepoint site.

I've tried making a flow but got stuck because a flow doesn't allow me to return an array variable to power apps, so all I managed to do is concatenate a long string with the library names as a sort of csv. But with this I haven't figured out a way yet to split the csv string back into seperate items and have them listed in the dropdown menu as items.

 

If anyone has any suggestions or solutions that would be great

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @gjeh ,

The Split() function will return a table able to be used in a drop-down.

Split(YourTextString,",")

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

5 REPLIES 5
WarrenBelz
Super User
Super User

Hi @gjeh ,

The Split() function will return a table able to be used in a drop-down.

Split(YourTextString,",")

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

v-qiaqi-msft
Community Support
Community Support

Hi@gjeh,

Based on the issue you mentioned, you want to populate dropdown with names of all libraries.

There is no way to achieve this in PowerApps currently.

If you would like this feature to be improved within PowerApps, please submit an idea to PowerApps Ideas Forum:

https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

However, you can return a table to your App using a flow.

Here is an article you can refer to:

https://powerapps.microsoft.com/en-us/blog/return-an-array-from-flow-to-powerapps-response-method/

 

Best Regards,

Qi Qiao

Best Regards,
Qi
gjeh
Responsive Resident
Responsive Resident

@v-qiaqi-msftHi, I'm sorry to inform you that you are incorrect and @WarrenBelz is very correct.

 

On page load I: Set(var1;GetListsFlow.Run())  and  enter  Split(var1.list;",")    as items property of the dropdown menu.

 

Now it is working as I planned.

 

Thanks @WarrenBelz 

Hello @gjeh 

Could you please share with me the flow you created? I'm having the same issue but I'm not sure how to create it in Power Automate.

Thank you.

gjeh
Responsive Resident
Responsive Resident

do you still need it?

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