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
Super User

@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
Super User

@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)

 

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
Community Champion
Community Champion

@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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (4,965)