Mail Message header request returns incomplete data?

%3CLINGO-SUB%20id%3D%22lingo-sub-3053662%22%20slang%3D%22en-US%22%3EMail%20Message%20header%20request%20returns%20incomplete%20data%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3053662%22%20slang%3D%22en-US%22%3E%3CP%3EAm%20using%20the%20following%20call%20to%20attempt%20to%20pull%20the%20full%20header%20off%20an%20email%20message%20stored%20in%20an%20Exchange%20Online%20user's%20mailbox%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fgraph.microsoft.com%2Fv1.0%2Fusers%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgraph.microsoft.com%2Fv1.0%2Fusers%2F%3C%2FA%3E%3CUSER%20upn%3D%22%22%3E%2FmailFolders%2F%3CMAIL%20folder%3D%22%22%20id%3D%22%22%3E%2Fmessages%2F%3CMAIL%20message%3D%22%22%20id%3D%22%22%3E%3D%3F%24select%3DSubject%2CInternetMessageHeaders%3CBR%20%2F%3E%3CBR%20%2F%3EI%20receive%20get%20back%20%3CSTRONG%3E%3CEM%3Emost%3C%2FEM%3E%3C%2FSTRONG%3E%20of%20the%20header%20information.%26nbsp%3B%20Strangely%2C%20what%20is%20missing%20is%20the%20one%20piece%20of%20information%20that%20I%20am%20looking%20for%20which%20is%20the%20%22To%22.%26nbsp%3B%20The%20reason%20I%20am%20trying%20to%20pull%20it%20this%20way%20is%20that%20once%20the%20message%20lands%20in%20its%20destination%20EOL%20is%20resolving%20the%20To%20field%20to%20items%20from%20Address%20Book.%26nbsp%3B%20I%20don't%20want%20this%20but%20rather%20the%20%3CEM%3E%3CSTRONG%3Eoriginal%3C%2FSTRONG%3E%3C%2FEM%3E%20contents%20of%20the%20message's%20To%20field.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FMAIL%3E%3C%2FMAIL%3E%3C%2FUSER%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3053662%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor

Am using the following call to attempt to pull the full header off an email message stored in an Exchange Online user's mailbox:

https://graph.microsoft.com/v1.0/users/<user UPN>/mailFolders/<mail folder ID>/messages/<mail message ID>=?$select=Subject,InternetMessageHeaders

I receive back most of the header information.  Strangely, what is missing is the one piece of information that I am looking for which is the "To".  The reason I am trying to pull it this way is that once the message lands in its destination EOL is resolving the To field to items from Address Book.  I don't want this but rather the original contents of the message's To field.



0 Replies