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

Invalid Argument Type (Record). Expecting a Text Value instead.

Hi - I apologise in advance if this has already been resolved (I'm new to PowerApps & was unable to find a similar thread).

 

I have built an approval Flow based on a PowerApp that functions as an online form. OnSelect of the 'Submit' button, data from the 'app form' populates the body of the email generated in the Flow via the Ask in PowerApps function. This works for all text fields (single/multiline) of the form i.e. SharePointForm1.LastSubmit.Title, but provides the error "Invalid Argument Type (Record). Expecting a Text Value instead" for dropdown/Choice fields i.e. SharePointForm1.LastSubmit.'<dropdownFieldHeader>'. I understand the nature of the issue, but I do not know the code required to fix it and have only found solutions regarding "Invalid Argument Type (Text). Expecting a Record Value instead." 

 

Thanks for your help. 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Invalid Argument Type (Record). Expecting a Text Value instead.

Hi @Monet ,

Do you want to pass the values from your app to your flow to send an email?

Could you please share a bit more about the Flow connection formula ('FlowName'.Run(...)) within your app?

 

Based on the issue that you mentioned, I think there is something wrong with your Flow connection formula. Currently, the MS Flow could only accept Text string parameter passed from PowerApps app, it could not pass an record value from an app to a flow.

 

Within your Flow connection formula, you should modify the dropdown/Choice field value reference as below:

SharePointForm1.LastSubmit.'<dropdownFieldHeader>'.Value               /* <-- append .Value formula here */

or

SharePointForm1.LastSubmit.'Choice Field'.Value

Please take a try with above solution, then 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.

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

Re: Invalid Argument Type (Record). Expecting a Text Value instead.

Hi @Monet ,

Do you want to pass the values from your app to your flow to send an email?

Could you please share a bit more about the Flow connection formula ('FlowName'.Run(...)) within your app?

 

Based on the issue that you mentioned, I think there is something wrong with your Flow connection formula. Currently, the MS Flow could only accept Text string parameter passed from PowerApps app, it could not pass an record value from an app to a flow.

 

Within your Flow connection formula, you should modify the dropdown/Choice field value reference as below:

SharePointForm1.LastSubmit.'<dropdownFieldHeader>'.Value               /* <-- append .Value formula here */

or

SharePointForm1.LastSubmit.'Choice Field'.Value

Please take a try with above solution, then 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.

View solution in original post

Monet
Level: Powered On

Re: Invalid Argument Type (Record). Expecting a Text Value instead.

Thanks @v-xida-msft ! That worked perfectly.

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

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 Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,017)