Skip to content

Office.js property 'From' does not return emailaddress of email sent as a delegate #2443

@digiofficerobin

Description

@digiofficerobin

Article URL
On what page did you find the problem?
https://learn.microsoft.com/en-us/javascript/api/outlook/office.messageread?view=outlook-js-preview

from
Gets the email address of the sender of a message.

The from and sender properties represent the same person unless the message is sent by a delegate. In that case, the from property represents the delegator, and the sender property represents the delegate.

Note: The recipientType property of the EmailAddressDetails object in the from property is undefined.

The from property returns an EmailAddressDetails object.

Describe the problem
Steps to reproduce:

  1. Start One Outlook
  2. Install Scriptlab for Outlook https://marketplace.microsoft.com/en-us/product/office/wa200001603?tab=overview
  3. Send an e-mail as a delegate of a user or shared mailbox
  4. Go to Sent items
  5. Click on the sent e-mail
  6. Open Scriptlab for Outlook
  7. Click New in Scriptlab for Outlook
  8. Paste the code below
  9. Run the code in Scriptlab
document.getElementById("run").addEventListener("click", run);

function run() {

  console.log(`current mailbox ${Office.context.mailbox.userProfile.emailAddress}`)

  console.log(`from ${Office.context.mailbox.item.from.emailAddress}`);

  console.log(`sender ${Office.context.mailbox.item.sender.emailAddress}`)

}

Screenshots

Image

Metadata

Metadata

Assignees

Labels

Area: OutlookFeedback on Outlook contentStatus: under investigationIssue is being investigatedType: doc bugProblem with the documentation (e.g., doc is out of date, unclear, confusing, or broken)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions