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 / Trouble with using out...
Power Apps
Unanswered

Trouble with using outlook and patch together.

(0) ShareShare
ReportReport
Posted on by 180

Is there a way to use these together?  I can send an email but I need it to pull from Outlook not my Yahoo.

 

Office365Outlook.SendEmailV2(Patch(

 

If I add the 365 in front of the patch, it will not combine.  I get the red squiggly.

 

Any thoughts?

 

Thanks.

Categories:
  • BCLS776 Profile Picture
    8,994 Moderator on at

    Are you using this connector correctly? The first argument of the connector function call should be the "To:" email address. What are you trying to achieve with using a Patch() in this spot?

     

    Bryan

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @GeminiWorks 

    Based on the issue that you mentioned, do you want to combine the Patch with Office365Outlook() function?

    Could you please share a bit more about the scenario?

     

    Actually, you could not insert the Patch() function into the Office365Outlook.SendEmailV2() function.

    Each function has its own parameters and expected data type, please check the following parameters the Office365Outlook.SendEmail owns.

    vqiaqimsft_0-1635302835509.png

    You could see that each expected data type in the Office365Outlook.SendEmail() function, however the Patch() function returns a Table data type that is not matched to any expected data type in the Office365Outlook.SendEmail() function.

     

    In a word, you could not refer to a table as the parameter in the Office365Outlook.SendEmail() function for the mismatched data type.

  • GeminiWorks Profile Picture
    180 on at

    I'm trying to use the fields in my table to send an email using outlook and not open personal email accounts on the mobile app:

     

    Office365Outlook.SendEmailV2(Patch('Contacts',Defaults('Contacts'),{Email: "Email", FirstName: "FirstName", LastName:"LastName"});
    Launch("mailto:"&ContactEmail

     

    GeminiWorks_0-1635343759488.png

     

  • BCLS776 Profile Picture
    8,994 Moderator on at

    Have a look at this blog for some real-life examples of how to use this connector. There should be no need to use a Launch() with a mailto: afterwards. The Patch() usage here will not work for this purpose.

     

    You should be supplying three strings as arguments to this connector: The destination email address(es), the subject of the email, and the email contents.

     

    The email account used by this connector is the one supplied as a connection by the currently-logged in user. You may have seen some prompts as you added the connector to your app - other users will see a similar prompt asking them to authorize using their email account to send emails in this way.

     

    Hope that helps,

    Bryan

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 394 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 324 Most Valuable Professional

Last 30 days Overall leaderboard