Hi There,
Thank you for asking this question on the Microsoft Q&A Platform.
You can achieve this scenario using the custom pipeline, if you want some reference then please check articles,
https://learn.microsoft.com/en-us/biztalk/core/developing-custom-pipeline-components?redirectedfrom=MSDN
BizTalk Tech Series: How to retain the original file name after flattening an XML file
Regards,
Kamlesh Kumar
BizTalk Techie
If this answer solved your problem, please click the Verify Answer button (found below the answer) to help other users who have the same question.