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 22

I have built an approval flow embedded on my canvas app. OnSelect of Submit button, data from LastSubmit will be fed to email generated in Flow via Ask PowerApps function. However, it keeps telling me that "Invalid argument type (record). Expecting a text value instead" And I stuck at this error, cannot find any other topic discussed about this. I have tried either "form.lastsubmit.remarks.value" or "form.lastsubmit.remarks.text" but didn't work out..

IMG_20200901_150149.jpg
Categories:
I have the same question (0)
  • Verified answer
    timl Profile Picture
    37,137 Super User 2026 Season 1 on at

    Hi @doanhthu 

    Welcome to the forums!

    I'm not convinced that it's the remarks field that is causing your problem.

    More likely, I think it might be the receiver field that is causing the problem, particularly if it's a SharePoint choice column. This would explain why the error reports an invalid argument type of 'record'.

    The diagnose this, I would replace formIDMSubmission.LastSumbit.Receiver with an empty string (eg, ""). Does the error go away? If not, I would repeat this process with the other argument values until the error disappears. This will help you identify for sure, the argument that is causing this error.

  • doanhthu Profile Picture
    22 on at

    I'm using remarks field as an example. However the method you recommended works really well. I'm able to troubleshoot the error part. 

    In the choices field context as you mentioned, I would like to know how we could express correctly on the formula? Thank you so much.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 899

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 499

Last 30 days Overall leaderboard