Announcements
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..
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.
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.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Vish WR 834
Valantis 533
Haque 410