ews-javascript-api icon indicating copy to clipboard operation
ews-javascript-api copied to clipboard

Error in the code leading to incorrect Item parsing

Open ahoncharov opened this issue 5 years ago • 0 comments
trafficstars

Hey Gautam, I'm using your package and found an error in the code.

Starting from Exchange2013 when requesting Item with 'All properties', Exchange starts to add EntityExtractionResult property (for example in letters from GMail). But the package can't finish parse normally of jsObject of Item and breaks down on the next line:

https://github.com/gautamsi/ews-javascript-api/blob/ef1ff64aa470bd354089bcd5ea2123b87facc5fe/src/js/ComplexProperties/ContactEntity.ts#L85

I've tried to change locally line 84 and it works fine now From this.EmailAddresses = new StringList(XmlElementNames.NlgEmailAddress); To this.Addresses= new StringList(XmlElementNames.NlgEmailAddress);

So, could you fix this typo.

Regards, Oleksii Honcharov

ahoncharov avatar Jul 16 '20 23:07 ahoncharov