You can get the file name by reading the following property: File.ReceivedFileName. It is in the message context and you can access it inside a custom pipeline component or inside an Orchestration.
l found the FILE.ReceivedFileName in the filter expression. How can l store it in a variable or an expression thanks to a .NET class? l looked in the MessageContextPropertyBase class but didn’t find any information.