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 / Pass Text Input Values...
Power Apps
Answered

Pass Text Input Values from PowerApps to Flow

(0) ShareShare
ReportReport
Posted on by 22

Hi All - 

 

I'm trying to determine the best way to pass the values from 10 or more text inputs in a Power App to a Flow.  There's no data source in the power app so I'm not using a Form of any kind, I'm just using text inputs.  I've seen the examples where others attach a Flow to a button and use the MyFlow.Run command but I don't see how I would pass all the values from my app to the flow.  Is there some collection of all my text inputs I'm not aware of that I can pass as a parameter or do I have to build a collection on the power app side to pass through to have my flow see all the separate values?  Thanks for any help you can provide.

 

Categories:
I have the same question (0)
  • Verified answer
    RezaDorrani Profile Picture
    12,145 on at

    Hi @huffmaster 

     

    Check this blog

    https://veenstra.me.uk/2019/01/29/powerapps-send-your-data-to-microsoft-flow-with-less-parameters/

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

  • huffmaster Profile Picture
    22 on at

    Thx for the help Reza.  The post seems helpful but it's not clear at all as to how I pass or access the JSON once I've set it in the power app.  The author early on writes...

    I’m starting by creating a single input in my Flow. My input is called Compose_inputs, but you could call it anything you like.

     There's nothing else in the post to indicate what Compose_inputs is, or where it's set, or where it comes from.  It's very confusing.  When testing the flow I'm not prompted for any type of input so I'm still not sure how I'm supposed get the JSON I've now created in my power app inside the flow.

  • huffmaster Profile Picture
    22 on at

    I ended up working through the issues I was having.  Inputs need to be a lot more clearly defined in Power Automate, it's not intuitive at all, and I still don't understand how you would ever remove inputs. 

     

    Thx again for your help @RezaDorrani.

  • gjeh Profile Picture
    432 on at

    why is this marked as solved when, indeed, the explanation greatly lacks of detail.

     

    typical.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    What is "Compose_inputs"? Can you give more details.

  • OJA Profile Picture
    2 on at

    This is late, but referring to the link RezaDorrani posted:

    - Create an Instant Cloud Flow and choose PowerApps as the trigger

    - Create a Compose element and in the input field, select "Ask in PowerApps" under Dynamic content. A 'Compose_input' object will appear in the input field. Now remove the 'Compose_input' from the input field.

    - Now click the Expression tab and type json(), then click between the parentheses and click the Dynamic content tab, then select "Compose_inputs" and click Ok.

    powerapp_compose.PNG

    - Save the Flow

     

    Go back to the PowerApp, add a button and in the OnSelect field insert (example):

     

    Set (toJSON,
    "{
    'field1CanBeNamedWhateverYouNeed': '"& TextInput1.Text &"',
    'field2': { 'field3YouCanNestJsonElements': '"& TextInput2.Text &"' },
    'field4': {'field5AnotherNesting': '"& TextInput3.Text &"'}
    }"
    ); NameOfYourFlow.Run(toJSON)

     

     

    As you can see, 'Compose_inputs' is just a dynamic variable that is used to receive the data from the PowerApp by the Flow.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at
    NameOfYourFlow.Run(toJSON)

    am getting an error in the above line saying that: invalid number of arguments: received 1, expected 0

  • PowerSA Profile Picture
    85 on at
  • PowerSA Profile Picture
    85 on at

    OBS: To connect your flow to the App you must go to the left menu and click "Power Automate". Here you click "+ Add Flow". Selct the fow.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 474

#1
Valantis Profile Picture

Valantis 474

#3
WarrenBelz Profile Picture

WarrenBelz 375 Most Valuable Professional

Last 30 days Overall leaderboard