cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
gabrielv22
Level: Powered On

OnSelect.Run - Flow and PowerApps

Hello.

 

I have a flow that create a field in SharePoint and send email.

Flow.png

 

In my App I input data in text box and need that send to SharePoint and email.

But, the function. not found. "Invalid arguments"

PowerApp.png

 

Can you help me?

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: OnSelect.Run - Flow and PowerApps

Hi @gabrielv22 ,

Based on the error message "Invalid argument type (Control), a Text value was expected instead" that you mentioned, I think there is something wrong with your formula.

 

The error message seems to tell that the arguments within your 'xxx'.Run() function is required to provide a Text value, but you provide a Control.

 

Please consider modify your formula as below:

AgregarElemento.Run(
                    NombreyApellido.Text;
                    Email.Text;
                    DNI.Text;
                    Categoria.Text;
                    Modelo.Text
)

Please take a try with above solution, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
4 REPLIES 4
Community Support Team
Community Support Team

Re: OnSelect.Run - Flow and PowerApps

Hi @gabrielv22 ,

I have made a test on my side, and don't have the issue that you mentioned.

 

Based on the error message that you mentioned, I think there is something wrong with the values you provided for these arguments within the Agregarunelemento.Run(...) function.

 

The order of arguments within your Agregarunelemento.Run(...) function is based on the order of parameters you specified within your flow. Please make sure that you have provided proper values for the corresponding arguments within your Agregarunelemento.Run(...) function:8.JPG

You could consider type proper value based on the argument prompt within your Agregarunelemento.Run(...) function. In addition, the data type of the value you provided within your Agregarunelemento.Run(...) function must match that of parameters specified in your flow. E.G. The parameter you specified in your flow is required to provided a Number value, within your app, you must provide a Number value for this argument.

 

Also please check if you have added your flow connection within your app properly. Please consider remove the flow connection from your app, then re-add a new flow connection, then provide proper values for corresponding arguments within Agregarunelemento.Run(...) function, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
gabrielv22
Level: Powered On

Re: OnSelect.Run - Flow and PowerApps

Hi @v-xida-msft 

 

I try changing the type of field, but continue the problem.

 

My list of SharePoint, is this:

Sharepoint.png

 

My Flow, is this:
Flow.png

 

 

 

 

 

 

 

 

 

 

 

My Apps:

Setting the only field that is number.

App1.png

 

Error

App2.png

Community Support Team
Community Support Team

Re: OnSelect.Run - Flow and PowerApps

Hi @gabrielv22 ,

Based on the error message "Invalid argument type (Control), a Text value was expected instead" that you mentioned, I think there is something wrong with your formula.

 

The error message seems to tell that the arguments within your 'xxx'.Run() function is required to provide a Text value, but you provide a Control.

 

Please consider modify your formula as below:

AgregarElemento.Run(
                    NombreyApellido.Text;
                    Email.Text;
                    DNI.Text;
                    Categoria.Text;
                    Modelo.Text
)

Please take a try with above solution, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
gabrielv22
Level: Powered On

Re: OnSelect.Run - Flow and PowerApps

Thanks @v-xida-msft, perfect!

It's Ok.

 

Other question.

I have en drop-down list, but the function no take the text value.

How can I take this value?