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 / Added Outlook connecto...
Power Apps
Answered

Added Outlook connector but still get "Invocation of unknown or undefined function" error

(0) ShareShare
ReportReport
Posted on by 13

Hi

I am trying to send an email from a button that is not in a form, just on the screen.  I have added the connector for Microsoft365Outlook, but still get an error message.

 

Attached is a screenshot.  Any ideas what I am doing wrong?

 

 

Thanks in advance.

Andre

Invocation error.png
Categories:
I have the same question (0)
  • cds Profile Picture
    1,001 on at

    Not sure if this is the problem or not, but Navigate should be the last action taken.

     

  • WarrenBelz Profile Picture
    155,352 Most Valuable Professional on at

    @supra8311 ,

    What is DisplayItem (I assume a collections) and how do you form it?

  • supra8311 Profile Picture
    13 on at

    Hi Warren. 

     

    Display item is local variable set to an item in a SharePoint list.

     

    I don't think it is the context variable.  If I comment out the function and type Office... none of the Office365 functions auto complete.

     

    Andre

  • supra8311 Profile Picture
    13 on at

    cds - thanks for the heads up.  I removed the Navigate, but still have the problem.

  • WarrenBelz Profile Picture
    155,352 Most Valuable Professional on at

    @supra8311 ,

    Can you please find the code that sets it and post it.

    It is also really helpful to post any code as text rather than a screenshot that has to be OCR'd or retyped to respond.

  • supra8311 Profile Picture
    13 on at

    Warren - 

    Here is the code that sets displayItem (from a different screen):

     

    Navigate(Job_Edit,ScreenTransition.None,{displayItem:Gallery2.Selected,matID:Gallery2.Selected.ID,new:false})

     

    But I don't think it has anything to do with the context variable.  I get an error with this code as well:

     

    Office365Outlook.SendEmailV2("apowell@cornerstonegranite.com","Hi","test");

  • Verified answer
    WarrenBelz Profile Picture
    155,352 Most Valuable Professional on at

    Hi @supra8311 ,

    I see it now - you are using the Old code on the renamed connector

    Microsoft365Outlook.SendEmailV2(
     "apowell@cornerstonegranite.com",
     "Hi",
     "test"
    );

     

    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.

     

  • supra8311 Profile Picture
    13 on at

    Thanks Warren!

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 860

#2
Valantis Profile Picture

Valantis 548

#3
Haque Profile Picture

Haque 417

Last 30 days Overall leaderboard