We need to automate a process with this requirement
when an email with attachment is created then the attachment file is moved to a SharePoint folder(maybe the folder will be created)
At Moment what are the best solution to do this? create a Plugin or automate with MS flow?
We use it with MS Flow and also create the SharePoint folder , if not already there- https://www.cloudfronts.com/move-attachments-from-tracked-email-to-sharepoint-using-microsoft-flow/
I wrote a post about using Flow to do something similar with Notes:
There are lots of dependencies and assumptions, but I was able to move a doc to SharePoint with no code in Flow!
Because it’s an email attachment and not a record with standard SP integration, it sounds like you would need some custom code to create the folder and remove the attachment.
You could also consider using Flow and Function Apps. This would give you a bit more capability while still using some low code/no code options. I am writing up a post on this kind of situation that I hope to post soon.