Power Apps and Power Automate integration
Within Power Apps you can send data to Power Apps using the Ask in Power Apps 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.
On top of this if you decide that you need an additional parameter you will have to disconnect your flow from your Power App 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 Power App I’m adding a button that sets a variable with the json text that I want to send to Flow.
The method described in this post:
- Avoids having to recreate the Power Apps/Flow integration when the number of parameters change
- Avoids many parameters when running flows from Power Apps