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 / Send html and some inf...
Power Apps
Answered

Send html and some info from Powerapp to Flow

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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

Categories:
I have the same question (0)
  • Verified answer
    LRVinNC Profile Picture
    2,297 on at

    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

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    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"

     

  • LRVinNC Profile Picture
    2,297 on at

    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

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi

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

    Thanks

  • LRVinNC Profile Picture
    2,297 on at

    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

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks for your help, its sorted now.

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

    Thanks

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard