Share via

Message content not getting retrieved

persistent_test 91 Reputation points
2022-05-12T09:53:13.847+00:00

graphClient.users("userId").messages(
Objects.requireNonNull(message.id))
.content().buildRequest()
.get();

I am trying to retrieve content from this method. Earlier it was retrieving values but from few days, I am not able to get inputstream of a message.

Microsoft Security | Microsoft Graph
0 comments No comments

1 answer

Sort by: Most helpful
  1. Vicky Kumar (Mindtree Consulting PVT LTD) 1,161 Reputation points Microsoft Employee
    2022-05-16T12:39:19.933+00:00

    Could you please try using messages.id instead of message.id and use async await function, let us know if that work?

    graphClient.users("userId").Messages(
    Objects.requireNonNull(Messages.id))
    .content().buildRequest()
    .GetAsync();

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.