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

Notifications

Announcements

Community site session details

Community site session details

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

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:
I have the same question (0)
  • Verified answer
    v-xida-msft Profile Picture
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard