Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

235
Views
Fetch Email Headers (Raw) Using Office.js API

I have build an Outlook OWA Add-In which is for both web and desktop application. There is a module where I have used "Office.context.mailbox.item.getAllInternetHeadersAsync()" to fetch headers of the mail which works perfectly on web version of outlook but when the same Add-In is loaded on the desktop version the code breaks because of mailbox version(1.4 or <1.8) compatiblity. As "getAllInternetHeadersAsync" is availble from mailbox version 1.8.

Refer - https://docs.microsoft.com/en-us/office/dev/add-ins/reference/objectmodel/requirement-set-1.4/office.context.mailbox.item

Is there any way that I can use to fetch the mail headers using Office.js javascript API? Other than Graph API, Office365 API or any other REST API.

Any help will be deeply appreciated. Thanks in advance.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

The internetHeaders API for the Desktop client was introduced in requirement set 1.8. This means that all clients that support a requirement set <= 1.7 cannot use this API. The only solution here is to upgrade to a newer client.

If you want to use REST/Graph APIs to retrieve the internet headers of a received message, you can do that by adding the $select=internetMessageHeaders query to your REST call for fetching the message. See example 2 on this documentation page : https://docs.microsoft.com/en-us/graph/api/message-get?view=graph-rest-1.0&tabs=http#examples

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!