Hi @B Jayachithra ,
Please find below sample snippet using Java for Microsoft Graph with GET /me/messages?$filter=subject eq 'test'
.
LinkedList<Option> requestOptions = new LinkedList<Option>();
requestOptions.add(new HeaderOption("Prefer", "outlook.body-content-type=\"text\""));
MessageCollectionPage messages = graphClient.me().messages()
.buildRequest( requestOptions )
.filter("subject eq 'test'")
.get();
Hope this helps.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".