cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dual Super User
Dual Super User

Re: Pass variable from powerapps to flow

Try creating a new Flow.   I suspect the one you have created the parameter you are passing when you original  designed it as an Integer.  I'm not sure how to delete that one or change its data type.  The value you are sending from PowerApps is clearly text.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Re: Pass variable from powerapps to flow

Hi @Pstork1 ~ i recreated the flow and associated the new flow to the button in powerapps but now i got this error on the button. I wonder why it is giving me this error when it is working before. It says, Invalid number of arguments, 1 received, 0 expected on this:

 

PowerAppsbutton.Run(Concat(Selected,Text(ID),","))

 

 

Dual Super User
Dual Super User

Re: Pass variable from powerapps to flow

When you recreated the Flow did you go to the dynamic data section and use Ask in PowerApps to generate a parameter? It thinks you haven't generated a parameter that needs to be sent.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Re: Pass variable from powerapps to flow

I managed to eliminate the error on the button by doing your advise. Now i am back on track, now im getting values with no commas. I followed all the steps you have provided but the values im getting from PowerApps returns like this 404345 whilst we are expecting this to be 40,43,45

 

 

Error.JPG

Dual Super User
Dual Super User

Re: Pass variable from powerapps to flow

What is the formula on the button in the PowerApp that invokes the flow.  That's where the columns are inserted.  Something must be wrong with the syntax of that statement.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Re: Pass variable from powerapps to flow

This is the script on the button: PowerAppsbutton.Run(Concat(selected,Text(ID),",")) 

 

Did I miss anything from the solution that you provided? The OnCheck & OnUncheck are also the same as what you have given me.

Dual Super User
Dual Super User

Re: Pass variable from powerapps to flow

That all looks right.  There's definately something wrong with the way its passing the parameter to Flow.  How did you create the parameter in Flow to pass?  I know you used Ask in PowerApps, but what field in what action did you add it to?  I think its getting created as an Integer and stripping the commas out of the parameter as its being passed.  I'm not sure what else I can do to help you.  I've mocked this up in my Lab and it all works.  I'm not sure why we can't get it to work in yours.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Re: Pass variable from powerapps to flow

Can i take a look at the flow that you created?

Re: Pass variable from powerapps to flow

On flow, the getitem_id is an integer type that is why it is not getting the commas from the string passed from my app. I did not initiated this getitem_id on my app and im wondering where this comes from?

 

 

 Error.JPG

johnom
Level: Powered On

Re: Pass variable from powerapps to flow

Hi
This is almost exactly what I am looking for,
however rather than selecting individual items I have created a collection (Selected) from my filtered gallery and am trying
to create a variable to pass to Flow using Concat(selected,Text(ID),",")

Issue seems to be that the ID field is held as a table in the collection and powerapps complains "Expected text or number"
in your version it saves the ID as a value - which works as expected

any help would be appreciated

regards
john

Helpful resources

Announcements
thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Kudoed Authors (Last 30 Days)
Users online (3,879)