PowerApps – Send your data to Microsoft Flow with less parameters

Within PowerApps  you can send data to PowerApps using the Ask in PowerApps in dynamic content. This quite quickly means that you end up with a lot of parameters when you want to pass a lot of data to your flow. This can become quite hard to manage.

Ask In PowerApps

On top of this if you decide that you need an additional parameter you will have to disconnect your flow from your PowerApp after you added the additional parameter to your flow.

In short, this can be a pain! A pain to be solved in this post.

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.

Then in my Compose action I’m converting the json text to json object using the json function. You could of course also use the parse json action, however this will be more flexible as I might not know the exact format of my json that is sent to the flow.

In my PowerApp I’m adding a button that sets a variable with the json text that I want to send to Flow.

My thoughts

The method described in this post:

  1. Avoids having to recreate the PowerApps/Flow integration when the number of parameters change
  2. Avoids many parameters when running flows from PowerApps
Advertisements

3 thoughts on “PowerApps – Send your data to Microsoft Flow with less parameters

  1. From PowerApps, you can use JSON() function to convert an object to JSON string, so you don’t have to concatnate strings manually. For example,

    UpdateContext({
    ctxFlowParams:{
    field1:TextInput1.Text,
    field2:TextInput2.Text
    }
    });
    PowerAppsButton.Run(JSON(ctxFlowParams));

    Like

Please leave a comment or feedback

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.