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
Unanswered

Invalid argument type (Text). Expecting a Record value instead

(0) ShareShare
ReportReport
Posted on by 5

In my Canvas power app, I am trying to send emails to those who are selected in the combo box. From the onSelect of send mail button, I have written the following code.

 

 

Set(schoolMails, Concat(ComboboxCanvas1.SelectedItems,'School email address',";"));
Notify(schoolMails);
If(!IsEmpty(ComboboxCanvas1.SelectedItems), SendMailFromCombobox.Run(schoolMails) ,Notify("Please Select Email addresses to send mails!",NotificationType.Error))

 

 

Where my concat function is working well and I can see it from the notify. but somehow I am getting the "Invalid argument type (Text). Expecting a Record value instead." error on flow run SendMailFromCombobox.Run(schoolMails). I don't know what I am doing wrong here?

Categories:
I have the same question (0)
  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    hey @divyeshpatel 

     

    can u try this:

    If(!IsEmpty(ComboboxCanvas1.SelectedItems),
     SendMailFromCombobox.Run(ComboboxCanvas1.SelectedItems),
     Notify("Please Select Email addresses to send mails!", NotificationType.Error)
    )
    

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • anandm08 Profile Picture
    1,936 Super User 2024 Season 2 on at

    hi @divyeshpatel ,

    The issue you're facing with the SendMailFromCombobox.Run(schoolMails) function is due to the fact that the SendMailFromCombobox Power Automate flow is likely expecting a different data type or structure than what you're providing. Specifically, it seems to expect a record or an array of records, rather than a single concatenated text string.

     

    Set(schoolMailsArray, Table(ComboboxCanvas1.SelectedItems));
    Set(schoolMailsJSON, JSON(schoolMailsArray));
    Notify(schoolMailsJSON);
    If(!IsEmpty(ComboboxCanvas1.SelectedItems), SendMailFromCombobox.Run(schoolMailsJSON), Notify("Please Select Email addresses to send mails!", NotificationType.Error));

     

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 166

#3
sannavajjala87 Profile Picture

sannavajjala87 71 Super User 2026 Season 1

Last 30 days Overall leaderboard