Hello,
Being new to Power Automate, need help on the following. The output from the compose action needs to be populated in a canvas Combo box. Pls. provide a solution.
Note: I do not have the Premium license
Regards
Hi @RMCoder ,
Got the output
but on preview of the Items property of the Combo box, i get the below.
Pls. suggest.
Hey @Sam70 !
The challenge you are going to face in this one is the flow output.
If you send that Compose back to your app (or anywhere, really) as it is it's going to read it as a string-literal such as: "[\"INC1\",\"INC2\",\"INC3\"]".
Without modifying your flow at all, in your canvas app use the ParseJSON expression inside of a Table expression to handle converting it.
Here is an example flow to mimic your data:
I call the flow and capture its output with a single button in my app. Here is the OnSelect property of the button:
Set(FlowOutput,Table(ParseJSON(GetINC.Run().output)))
This expression chain is doing four things:
I can now use this table variable anywhere I need to (e.g. in a gallery) and access its values with the .Value property:
Ex. ThisItem.Value when in a gallery, or First(FlowOutput).Value in a random label.
In your Combo Box, you only need to set its Items property to your variable, it should automatically pick up the Value property to display the text of each item.
I hope this gets you on the right track!
Please mark this as a solution if I answered your question, it helps others find answers to their questions 🙂