cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Invocation of Unknown or unsupported function

 Getting This error and cant figure out how to fix it.  Any help would be great   Set(_emailRecipientString, Concat(MyPeople, Mail & ";")); Office365Outlook.SendEmail(_emailRecipientString, TextEmailSubject1.Text, TextEmailMessage1.Text); Reset(TextEmailSubject1); Reset(TextEmailMessage1); Clear(MyPeople)

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User III
Super User III

@Anonymous ,

Which part of the code is the error on? I assume MyPeople is a Collection with Mail as a field in it?

Set(
   _emailRecipientString, 
   Concat(
      MyPeople, 
	  Mail & ";"
   )
); 
Office365Outlook.SendEmail(
   _emailRecipientString, 
   TextEmailSubject1.Text, 
   TextEmailMessage1.Text
); 
Reset(TextEmailSubject1); 
Reset(TextEmailMessage1); 
Clear(MyPeople)

 

View solution in original post

9 REPLIES 9
WarrenBelz
Super User III
Super User III

@Anonymous ,

Which part of the code is the error on? I assume MyPeople is a Collection with Mail as a field in it?

Set(
   _emailRecipientString, 
   Concat(
      MyPeople, 
	  Mail & ";"
   )
); 
Office365Outlook.SendEmail(
   _emailRecipientString, 
   TextEmailSubject1.Text, 
   TextEmailMessage1.Text
); 
Reset(TextEmailSubject1); 
Reset(TextEmailMessage1); 
Clear(MyPeople)

 

View solution in original post

Anonymous
Not applicable

The error seems to be here: Office365Outlook.SendEmail(_emailRecipientString, TextEmailSubject1.Text, TextEmailMessage1.Text);

@Anonymous 

Can you confirm that you've added the Office 365 Outlook connection under the View > Datasources menu?

If not, that would explain this type of error message.  

 

image.png

Anonymous
Not applicable

I have Office 365 Users.  I tried adding the office 365 outlook but it tells me  REST API is not yet supported.  I am guessing that is an issue I need to mention to the Administrator  Correct?

Eelman
Super User
Super User

@Anonymous 

Try V2, ie

... Office365Outlook.SendEmailV2( ...

Anonymous
Not applicable

I get the same error

@Anonymous 

Yes, that's correct. This is something that you would have to mention to your administrator.

This error typically occurs when there isn't a mailbox that is associated with your account.

Anonymous
Not applicable

Thank you for your help

@Anonymous ,

You will - @timl suggestion was spot-on (sorry I have been offline for a short while).

A bit of research suggests that this happens for mailboxes that have not been migrated to O365. Your mailbox is likely still on a dedicated exchange server. You'll need to request your Outlook administrator migrate your mailbox.

Here is documentation on how this can be done by an administrator.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (3,704)