Coder Social home page Coder Social logo

In new outlook desktop , office.js doesn't contain the field "dateTimeSent" for mail. However it's available in Office on the web. about office-js HOT 5 CLOSED

sachidanand-cloudextend avatar sachidanand-cloudextend commented on September 14, 2024
In new outlook desktop , office.js doesn't contain the field "dateTimeSent" for mail. However it's available in Office on the web.

from office-js.

Comments (5)

anjalitp avatar anjalitp commented on September 14, 2024

The Office.context.mailbox.initialData is not designed for public use. It's an internal attribute, and your add-in should not depend on it. Officially supported date properties provided by our API are:

  • Office.context.mailbox.item.dateTimeCreated
  • Office.context.mailbox.item.dateTimeModified

from office-js.

sachidanand-cloudextend avatar sachidanand-cloudextend commented on September 14, 2024

Hi Team,
Thanks for the response.
But dateTimeCreated and dateTimeModified isn't the correct property to use, when I have saved the mail as draft for sometime and send later.

Let's say , I have saved a mail as draft and kept it for one month , after one month when I send the mail, dateTimeCreated will be one month ago, but dateTimeSent would be today, so dateTimeCreated doesn't give us the correct date when mail was sent.

For example: Today I saved a mail as draft and sent it after sometime. Here is the response from graph api.
Please have a look at the properties createdDateTime and sentDateTime
Screenshot 2024-05-30 at 11 54 11 AM

from office-js.

anjalitp avatar anjalitp commented on September 14, 2024

@sachidanand-cloudextend Currently, there isn't a direct API to retrieve the dateTimeSent property. However, you can utilize the Office.context.mailbox.makeEwsRequestAsync API as a workaround to obtain this information. Please refer the documentation for more details on this API.

Also, we track Outlook add-in feature requests on our Tech Community Page. Please submit your request there and choose the appropriate label(s). Feature requests on Tech Community are considered, when we go through our planning process.

from office-js.

microsoft-github-policy-service avatar microsoft-github-policy-service commented on September 14, 2024

This issue has been automatically marked as stale because it is marked as needing author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for your interest in Office Add-ins!

from office-js.

microsoft-github-policy-service avatar microsoft-github-policy-service commented on September 14, 2024

This issue has been closed due to inactivity. Please comment if you still need assistance and we'll re-open the issue.

from office-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.