Read messages with subject starting with text
Gets messages whose subject starts with given text. Use SearchCriteria in the WITH clause (e.g. startsWith(Subject,'Announcements for')). See Microsoft Graph filter docs for more conditions.
SELECT * FROM get_messages
WITH (UserID='firstname.lastname@domainname.com', SearchCriteria='startsWith(Subject,''Announcements for'')')
--Check this link to learn more about search conditions: https://learn.microsoft.com/en-us/graph/filter-query-parameter?tabs=http