Hello,
I am trying to use the Microsoft Graph API to get the content of outlook messages. I am using the example in https://docs.microsoft.com/en-us/outlook/rest/node-tutorial.
The part I am trying to modify is the following snippet:
try { // Get the 10 newest messages from inboxconst result = await client .api('/me/mailfolders/inbox/messages') .top(10) .select('subject,from,receivedDateTime,isRead') .orderby('receivedDateTime DESC') .get();
I am trying to display the body of the message instead of the properties listed above for the $select statement
try { // Get the 10 newest messages from inboxconst result = await client .api('/me/mailfolders/inbox/messages') .top(10) .select('subject,from,body') .orderby('receivedDateTime DESC') .get();
However, body does not seem to be a property supported by $select and my PC hangs waiting indefinitely for the api call to return.
Where can I find a list of all the properties supported by $select?
I thought the following URL (https://docs.microsoft.com/en-us/graph/api/resources/message?view=graph-rest-1.0) would list all the available properties for the message resource and that those in turn are supported by $select.
Thanks in advance
Yorg