cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Pass entire form / multiple text fields to flow

I am trying to pass several field of a edit form to a flow. I tried doing it like this:
myflow.run(datacardvalue1, datacardvalue2, datacardvalue3,...)

Within the flow I initialized variables, and tried to enter the arguments as a value.

Unfortunately I get the error that to many arguments are being passed. Only 1 argument is expected. This is why I assume, I cannot pass multiple arguments to a flow. Is this true? 

If not, how can I achieve this?  Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
yashag2255
Dual Super User II
Dual Super User II

Hi @Anonymous 

 

You can pass any number of arguments in a flow. The problem you are getting is because you might have refrenced the same variable everywhere (something like initializavariableValue in your flow), while adding the variables in a flow you need to select "See More" from the Dynamic content and instead of selecting initializavariableValue, you should select Ask in PowerApps. This will add a new variable as argument.
 
Once you have added all the variables, you need to go back to powerapps, and remove the flow and then re-register it inside your app to reflect the newly added variables, please provide the values in expected order only.
 
Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

4 REPLIES 4
yashag2255
Dual Super User II
Dual Super User II

Hi @Anonymous 

 

You can pass any number of arguments in a flow. The problem you are getting is because you might have refrenced the same variable everywhere (something like initializavariableValue in your flow), while adding the variables in a flow you need to select "See More" from the Dynamic content and instead of selecting initializavariableValue, you should select Ask in PowerApps. This will add a new variable as argument.
 
Once you have added all the variables, you need to go back to powerapps, and remove the flow and then re-register it inside your app to reflect the newly added variables, please provide the values in expected order only.
 
Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Anonymous
Not applicable

hi @yashag2255 

 

thanks a lot for answering the queston! you helped me a lot!! My problem was indeed that i did not remove the flow and put it back in. now it works. however, a new problem popped up - maybe you can help me with that too? That would be awesome.

What I try to achieve is the following. The list hast a date field. The edit form allows to edit this field. The form contains a date picker and two drop downs for hour and minute. Again, all of them match to one single list column. Now, when I submit the form I need to start a flow too. This flow should take the newly created date and does some calculations. Therefore - I think - I need to pass the three different fields and concat them within the flow to use the date there. Unfortunately, the passing of the parameter does not work. I have initialized three variables in the flow for date, hour and minute. All three are of type string as the date field in the list is string too. 

now, i am trying to pass the parameters. I get an error because the passed parameters are of type record and control. I do not have the option to inititalize a variable of that type in flow. what can i do? thanks a lot!!

Anonymous
Not applicable

@yashag2255 

hi! me again..

I think i just need to put text() around to make it work, right?

but also, now there is a 4th paramter i never have used in the flow. Just called variableinit_value. I do not need that and it causes trouble because i do not know its data type. I can not remove it.. have you had similar situations before? 

 

Hi @Anonymous 

 

Yes you can pass the date value concatenated as a string, just like you are passing in your data source. There need not be three different parameters for three date,hours and minutes, this can be passed as a single text value. 
 
Regarding the variable that you are not using, please make sure that you have removed its reference throughout the flow, just to be sure it is not used anywhere. Now, you need to remove the flow from the button action and  re-register it on your app. This way the extra variables will be removed and you will have the latest set of expected variables.
 
Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,250)