cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tuuman
Resolver I
Resolver I

Flow needs item ID but won't accept any arguments in Powerapps

I have a simple flow that sends email with a click of a button in Powerapps.
The flow looks like this:

Trigger from Powerapps -> Get item from Shrapointlist (ID is asked from Powerapps with GetItem_ID) -> Send Email

 

Fairly simple, I've done almost exact same in the past and it worked. So then I go to Powerapps, assign the flow to the SendEmail_Button with FlowName.Run(DataCardValue1). DataCardValue1 holds the ID value of the currently selected item so logically that should be put inside the parameter. However the function gets all redlined with the error "incorrect amount of arguments: received 1, expected 0" (my powerapps is in other language so I'm not excatly sure how the error is written but you get the idea).

 

So we got flow that doesn't accept any parameters but can't run because it doesn't have the ID that it needs for getting the item from list and it should ask from Powerapps.

 

I've checked all the functions, checked the flow and deleted and created new one three times and I still got no idea why It doesn't accept any parameters. I have another app that has pretty much the same type of flow. Only the email content is different but that shouldn't affect in the first place.

 

Any idea what's wrong?

1 ACCEPTED SOLUTION

Accepted Solutions
tuuman
Resolver I
Resolver I

Solved it but not sure what I did different this time.

 

I just created the flow enough many times until it actually started asking item ID. The structure of the flow didn't change and the components are the same. It just started to work. Now I'm afraid to rename it incase it brokes again Man Frustrated

View solution in original post

4 REPLIES 4
CarlosFigueira
Power Apps
Power Apps

Depending on when you added the flow reference to our app, it may be referencing an older version of the flow. Select the button that triggers the flow, then on the Action tab in the ribbon, select Flows. It should show the flow that is associated with it. Click the '...' option and remove it, then add it again. This time it should reference the latest version of the flow, with the appropriate number of arguments.

Hope this helps!

Hi and thank you for your reply, CarlosFigueira. Unfortunately this didn't solve my problem.

However I noticed something weird. When I came back and opened my Powerapps project I noticed the button that I've assigned the flow was missing the flow. Function was still there untouched. However as I tried to check the flows it finds the flow I've created but says I haven't assigned it to anything. When I finally try to assign it it randomly disappears for very short time saying no assigned flows and the reappears again.

I also tried to assign another flow that I know needs to get the ID from Powerapps. Same problem. Flow doesn't accept any argumentss even though It really needs one.

So I guess there's some sort of glitch or bug in my app? I've put so much time and effort in this app and I really hope I don't have to rebuild the app.

 

EDIT: I tried to put the flow on other app. It doesn't work there either so there's something wrong with the flow too. The other flow that utilizes same steps works just fine in that app (only main difference is that it picks item from different list and sends different email).

Okay I tried a following:

 

I created new blank app. I added a gallery and editable form. Both are linked to the same sharepoint list and are showing infromation correctly. Then I created a new button and assigned the flow on it. Still doesn't accept any arguments. I tried another flow that I've used on previous app and have been confirmed to work. That didn't work either on new app! So I guess there's something really wrong in flows. I've used GetItem_ID earlier and never been experienced such problem.

tuuman
Resolver I
Resolver I

Solved it but not sure what I did different this time.

 

I just created the flow enough many times until it actually started asking item ID. The structure of the flow didn't change and the components are the same. It just started to work. Now I'm afraid to rename it incase it brokes again Man Frustrated

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

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