Skip to main content

Notifications

Power Automate - General Discussion
Answered

Output of Flow in Canvas Combo

(1) ShareShare
ReportReport
Posted on by 233

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. 

 

Sam70_0-1692959980217.png

 

Note: I do not have the Premium license

 

Regards

 

  • Sam70 Profile Picture
    Sam70 233 on at
    Re: Output of Flow in Canvas Combo

    Hi @RMCoder ,

     

    Got the output  

    Sam70_0-1693493243580.png

    but on preview of the Items property of the Combo box, i get the below.

    Sam70_1-1693493411266.png

    Pls. suggest.

     

     

  • Verified answer
    RMCoder Profile Picture
    RMCoder 219 on at
    Re: Output of Flow in Canvas Combo

    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:

    RMCoder_0-1693201877583.png

     

    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:

    1. Running my GetInc flow from above
    2. Converting the output (or whatever your response is labeled in the flow) into a JSON object
    3. Converting that untyped object into a table
    4. Storing the value in the variable FlowOutput

    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 🙂

     

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,343

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard