cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
abhishekk3
New Member

error in run

abhishekk3_0-1642926341966.png

am trying to create an auto fill form( power app+ power automate). in the final stage the following error is showing . what is the solution?

code:

AUTOFILLTEMPLATE.Run(userid1.Text, operator1.Text, authentication1.SelectedItems, limits1.SelectedItems.Value, date1.SelectedDate,
branchname1.SelectedItems, branchname1.SelectedItems, accountno1.Text, facility1.SelectedItems.Value, mobile1.Text, userid1.Text)

6 REPLIES 6
WarrenBelz
Super User
Super User

Hi @abhishekk3 ,

I cannot see your data or Flow, but it appears there are red lines under the .Value of a number of SelectedItems. This would suggest if you are wanting to send Text (not a Table), you need .Selected.Value (and also .Value may be different depending on the Items of the combo boxes. I assume from writing the Flow, you would know what data types you need to send.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

 

 

Thank you Sir for your Valuable Suggestion. It help me to resolve the issue. But Now while submitting following issue happens. Can you guide me to resolve the same?

code:

newflow.Run(Userid1.Text, operator1.Text, authentication1.Selected.Value, newlimit1.Selected.Value, date1.SelectedDate, branch1.Selected.Value, Value(accountno1.Text), facility1.Selected.Value, Value(mobile1.Text))

 

here mobile no and account no are in number format so passing the same to the output used value() function.  no error message after writing the above code. But while running error occurring "the method run has an invalid value for the parameter text" How to resolve this?

 

 

@abhishekk3 ,

If it is expecting Text, just drop the Value() from around it.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

WarrenBelz
Super User
Super User

Hi @abhishekk3 ,

Just checking if you got the result you were looking for on this thread. Happy to help further if not.

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

no sir , Issue not resolved. Still Showing Some Errors. Error Screenshot Attached.

@abhishekk3 ,

I cannot see your data or field types - you need to line up your parameters with the field types expected by the Flow.

Could you also post your code in Text and specify what is being shown as the error/s

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (1,279)