cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JSPower
Regular Visitor

Retrieving String ID from a single selection combobox

Hi everyone, I've got a single select Combobox and I want to pass the 'String ID' value of the selected record as a parameter to the flow that is triggered.

 

Unfortunately, I'm not able to retrieve the 'String ID' value of the selected record within the combobox.

 

I've tried several ways but I'm always getting an error

#1(First(ComboBox1.SelectedItems).'String Id')

#2 ComboBox1.Selected.'String Id' 

#3 Text(ComboBox1.Selected.'String Id') 

Could anybody help me how to retrieve the 'String ID' value of the selected record?

 

I previously used DropDown but I found out that it does not have an inline search. So I have to use a Combobox and for instance, ComboBox1.Selected.Name works for me.

 

The whole formula I'm using to call the flow

Set(flowResult,TriggeredFlow.Run(ComboBox1.Selected.'String Id'));If(flowResult.result = "Success",Navigate(ConfirmationScreen,ScreenTransition.None))

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
RandyHayes
Super User
Super User

@JSPower 

What is the Items property of your ComboBox?

That will determine what you can retrieve from it.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

Thank you for that hint.

 

I had the following filter and sorting applied on the item property. So I tried to replace that by a simple entity reference and published the application.

Sort(Filter('Print Batch',Status = 'Status (Print Batch)'.Active),'Created On',Descending)

 

I have no explanation for it but after that when I even returned the same formula into the item property I wasn't getting any error and I could use the code below to get the 'String ID' value. 

ComboBox1.Selected.'String Id'

 

 

View solution in original post

3 REPLIES 3
RandyHayes
Super User
Super User

@JSPower 

What is the Items property of your ComboBox?

That will determine what you can retrieve from it.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
pawanjajoo
Resolver I
Resolver I

Hi @JSPower ,

 

Are you trying to get the selected value of the combobox? Then it should be ComboBox1.Selected.Value

 

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.

Thank you for that hint.

 

I had the following filter and sorting applied on the item property. So I tried to replace that by a simple entity reference and published the application.

Sort(Filter('Print Batch',Status = 'Status (Print Batch)'.Active),'Created On',Descending)

 

I have no explanation for it but after that when I even returned the same formula into the item property I wasn't getting any error and I could use the code below to get the 'String ID' value. 

ComboBox1.Selected.'String Id'

 

 

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 (4,301)