Get Mail Activity of MS365: want to filter the mails with To criteria

Yes, that I understood. But what needs to be used now? Please guide