My scenario,i need to filter email by certain department and write those email to a sharepoint list.Any idea how that can be accomplished and i need to deploy the solution so that the whole company can use it.
check out connectors, refer to the link: https://flow.microsoft.com/en-us/blog/seven-connectors-and-html/
Use the Microsoft.Office.Interop.Outlook.dll to read the email from Outlook context and extract the data. Then use CSOM(C#) to add email to a SharePoint document library. Check the articles below: