This flow has below logics
1)When a new email arrives then it extracts country metadata Property in "TO" address so i used get user profile to extract country value
2)Next i used get items2 where this list contains company name, client email address so filter array will compare incoming email addresses which is From email ID contains in the customer list custome remailaddress column then im getting company name of that client email address and finally it will create a item in Main sharepoint list which will store the values of From, To ,CC, Country, Customername and to update item in main sharepoint list,in the below flow get items action i passed filter From eq 'From' so it will update the values accordingly
3)Also,im storing email attachments in the document library based on year/month/country/company folder structure