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 / Error sending via shar...
Power Apps
Answered

Error sending via shared mailbox: office365outlook.SharedMailboxSendEmail

(0) ShareShare
ReportReport
Posted on by 211

I have an app where users can compose an email in a rich text field, and the composed email is then saved in a SharePoint list. In the `Office365Outlook.SharedMailboxSendEmailV2` function, the text is retrieved from the SharePoint list and added to the email body. Unfortunately, I consistently encounter an error indicating that an unexpected empty value is being passed at a certain point.

The text looks fine in a rich text field

My code looks like this:

 

Office365Outlook.SharedMailboxSendEmailV2(
"info@xxxxxxxxx.de";
//Here it need to be the send to adress
"xxxxxx@xxxxxxxxxx.de";
"Test Gerade Telefoniert";
LookUp( ComHistory; ID = ComLastSubmitID; EmailText )

)

 

Any suggestions?

Categories:
  • Verified answer
    ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    Hi @Sven4 , For this function, there are 6 parameters which are required and you are passing only 4 parameters.

    ANB_1-1704636757457.png

    Name and Content for attachment is also required. 

    If you do not want to send any attachment, then use below code: EDITED:

    Office365Outlook.SharedMailboxSendEmailV2("info@xxxxxxxxx.de",
    //Here it need to be the send to adress
    "xxxxxx@xxxxxxxxxx.de",
    "Test Gerade Telefoniert",
    LookUp( ComHistory; ID = ComLastSubmitID; EmailText ),
    {}
    )

    Reference: https://learn.microsoft.com/en-us/connectors/office365/#send-an-email-from-a-shared-mailbox-(v2)

    -----------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    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.👍

    Thanks,
    ANB


     

  • Sven4 Profile Picture
    211 on at

    hello @ANB Thank you for your reply. Normally I should recognize this myself, but somehow I overlooked it. sometimes you can't see the forest for the trees.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard