cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper IV
Helper IV

Send html and some info from Powerapp to Flow

Hi All

I need to create different reports in PDF from the app so i have created a Flow that takes the input from the app (some html that is created in a app), makes a PDF file and save in into Onedrive.

It works fine, but now I need to be able to create different files depending on the information sent from the app - I have 20 different offices and need to create a different pdf for each office. So I need to send at least 2 variables (office name and html) to the Flow so it can create corresponding file. 

But  FlowName.Run(Variable) only takes one parameter.

So any ideas how I can do this?

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Send html and some info from Powerapp to Flow

You can pass multiple parameters to Flow.  However, I have found that if I initially added a Flow to an app with a single parameter and later add another, I need to delete and re-add the flow in my connections for it to see the added parameter.  Here's one with two... 

Flow.jpg

...and I had to remove the flow and go back to Action - Flows and add it again.

Flow2.jpg

View solution in original post

6 REPLIES 6
Highlighted
Super User
Super User

Re: Send html and some info from Powerapp to Flow

You can pass multiple parameters to Flow.  However, I have found that if I initially added a Flow to an app with a single parameter and later add another, I need to delete and re-add the flow in my connections for it to see the added parameter.  Here's one with two... 

Flow.jpg

...and I had to remove the flow and go back to Action - Flows and add it again.

Flow2.jpg

View solution in original post

Highlighted
Helper IV
Helper IV

Re: Send html and some info from Powerapp to Flow

Sorry, I am still new to Flows, not sure how to specify how many parameters will be in theat function.

I have tried adding new button that would run the Flow and would tried adding 2 parameters (Flow.Run('var1','var2') ) but still getting "Invalid number of arguments. Received2, ixpected 1"

 

Highlighted
Super User
Super User

Re: Send html and some info from Powerapp to Flow

As I mentioned earlier, you will need to remove the reference to the flow from your app that you have been using and re - add it using View - Data Sources - find the flow you are using - 3 dots - Remove.

 

Then go to the button you want to connect this flow to again and do Action - Flows - select the flow you want to use - then complete the Run action it generates for you using both parameters you want to provide.  

 

Flow takes whatever parameters you send it BUT if the relationship between PowerApps and Flow has previously been established it remembers that and thinks you are providing the number of parameters you used when you originally set it up.  To get it to recognize that the number has changed, you have to break the relationship between PowerApps and the Flow and then re-establish it.  

 

Additional info on calling Flows from Powerapps:  https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/using-logic-flows

Highlighted
Helper IV
Helper IV

Re: Send html and some info from Powerapp to Flow

Hi

Just tried it - still getting "Invalid number of arguments: received 2, expexted1"

Thanks

Highlighted
Super User
Super User

Re: Send html and some info from Powerapp to Flow

If none of that has worked, rename your flow (or delete existing).  Create a new flow from scratch to do the same steps as the original flow.  You can start from PowerApps by using Action / Flows - Create a New Flow

Flow4.jpg

Highlighted
Helper IV
Helper IV

Re: Send html and some info from Powerapp to Flow

Thanks for your help, its sorted now.

Just had to recreate a Flow, I think theer was a problem with it.

Thanks

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,636)