nmarus / node-ews

A simple JSON wrapper for the Exchange Web Services (EWS) SOAP API.
MIT License
116 stars 52 forks source link

Fetching message content #44

Closed mrigankulus closed 7 years ago

mrigankulus commented 7 years ago

Hello,

I can get the subject and sender content while trying to get an inbox full of unread emails. Is there any way to access the actual content of the email message. I tried sending some text and it doesnt show up on the jSON returned.

Thank You

kcastrotech commented 7 years ago

An example of what you're sending and what you want would be helpful.

However, if I had to guess then I'd imagine you're using FindItem (https://msdn.microsoft.com/en-us/library/office/aa566107(v=exchg.150).aspx) to get a list of unread messages and are wanting the content of said messages returned in the response? That is determined by the ItemShape (https://msdn.microsoft.com/en-us/library/office/aa565261(v=exchg.150).aspx) specified in your request. So you'll either need to change the BaseShape to "AllProperties" or use the "AdditionalProperties" to specify the specific properties (https://msdn.microsoft.com/en-us/library/office/dn600367(v=exchg.150).aspx) you want returned.

mrigankulus commented 7 years ago

Ah got it. Thank You!

kcastrotech commented 7 years ago

You're welcome! :)