web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Invalid Argument Type ...
Power Apps
Answered

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

(0) ShareShare
ReportReport
Posted on by 10

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. 

Categories:
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    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,

  • Monet Profile Picture
    10 on at

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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard