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))
Solved! Go to Solution.
What is the Items property of your ComboBox?
That will determine what you can retrieve from it.
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'
What is the Items property of your ComboBox?
That will determine what you can retrieve from it.
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'
User | Count |
---|---|
118 | |
86 | |
83 | |
74 | |
69 |
User | Count |
---|---|
215 | |
179 | |
141 | |
109 | |
83 |