Hello SriBhargav94,
Check this link as it is similar issue and hope it helps
Re: Creating a calculated attachment where File name is computed at the time of delivery for each re...
Regards,
Venu