web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Populate a dropdown li...
Power Apps
Unanswered

Populate a dropdown list from a web service output

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi @v-micsh-msft is this something you can help me with?

 

I am doing an experiment where the items for a dropdown box as stored as string... ie

 

"ItemA, Item B, Item C"

 

I need to convert them to table format (ie ["ItemA", "itemB", "ItemC"]. I have not found a way to do this inside PowerApps. So having played around with making my own webservices, I decided to do something really crazy and make a Flow that converts a string to a JSON array. 

 

I did this via setting up Flow to be triggered from a Request trigger and I send a response action back. I then made a swagger file for PowerApps to consume and registered the custom connector.

 

When I call this webservice outside of PA, flow returns an array...

 

Response.PNG

I then tried this:

 

Set(blah,StringtoJSON.StringtoJSON("AA,BB,CC"))

 

The net result of this was that my variable "Blah" was seen by PowerApps as a table, but it was empty.

 

So my question is twofold. First, can I dnamically generate a table for a dropdown to consume inside PowerApps? Second, if you put aside the fact my workaround is pretty insane and I'd likely not do it in prod, nevertheless can you see a reason why PA would be getting an empty value?

 

PAResp.PNG

 

 

Categories:
I have the same question (0)
  • v-micsh-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    Would the table() function helps here?

    Table function in PowerApps

    For example, to have the itemA itemB itemC stores in a table, we could try the following:

    Table({Value:"Item A"},{Value:"Item B"},{Value:"Item C"})

     

    For function which would convert several strings into a single column table, based on what I know, that is not available under PowerApps.

    There is an idea submitted on this:

    Function to split a string into a table with results

     

    Besides, for the table get from the Flow, take a try to click the Grid under the table.

    The single column should be archived there.

     

    Regards,

    Michael

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    A table function works, but I have not found a way to be able to pass a variable to it - ie a string. In this case the list of dropdown items is coming from a SharePoint list...

     

    Make sense?

  • Ed_M Profile Picture
    13 on at

    Any luck on getting this to work?   I'm looking to do something similiar with a webservice; for the purpose of processing business logic and returning a string on my powerapps.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard