0

I'm trying to use Office.context.mailbox.item.dateTimeCreated and used 1.1 office.js version but it is giving me undefined

I tried changing version in CLI to 1 and 1.3 but it's giving the same.

This is my javascript script tag

Eugene Astafiev
  • 47,483
  • 3
  • 24
  • 45

2 Answers2

0

Use the saveAsync method which asynchronously saves an item. When invoked, this method saves the current message as a draft and returns the item ID via the callback function. In Outlook on the web or Outlook in online mode, the item is saved to the server. In Outlook in cached mode, the item is saved to the local cache. Some properties can be changed after calling the saveAsync method.

Eugene Astafiev
  • 47,483
  • 3
  • 24
  • 45
0

Office.context.mailbox.item.dataTimeCreated only supports Message Read and Appointment Read. If you are using it on Message Compose, it will return undefined.