-
Notifications
You must be signed in to change notification settings - Fork 68
Open
Labels
Area: OutlookFeedback on Outlook contentFeedback on Outlook contentStatus: under investigationIssue is being investigatedIssue is being investigatedType: doc bugProblem with the documentation (e.g., doc is out of date, unclear, confusing, or broken)Problem with the documentation (e.g., doc is out of date, unclear, confusing, or broken)
Description
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:
- Start One Outlook
- Install Scriptlab for Outlook https://marketplace.microsoft.com/en-us/product/office/wa200001603?tab=overview
- Send an e-mail as a delegate of a user or shared mailbox
- Go to Sent items
- Click on the sent e-mail
- Open Scriptlab for Outlook
- Click New in Scriptlab for Outlook
- Paste the code below
- 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

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