I am able to attach Email to a case, but am not able to change the Email File name.
pyAttachmentPage.pyAttachNames --here am getting Original-email.eml
While trying to change Original-email.eml to according to the case ..but email attachment is not working properly ..If any one made the "Original-email.eml" to customized name please help me how to make this.
Taking a look at the activity Work-.AttachFile, it looks like the file name is picked up by the Java in step 11 and mapped to the pyNewFileAttachment page, which ultimately gets copied over to pyAttachmentPage in step 39. This is a final rule, so I'm not really sure exactly how you can intercept it from inside of Pega (short of creating your own custom activity based off of it, but then you won't be able to get advances with new releases). I'm not sure where the file gets named initially, since this seems to be reading the file off of the file system. You might be able to do something on that end to control the file name.
attachments from incoming email will be available on "pyAttachmentPage" page. we had a similar requirement, where I was just checking the file name on each attachment, looping through "pyAttachmentPage.pyAttachNames", if it contains ".eml", changing it to required name.
@HariPrasadK8760 How did you get incoming email attached to the case ? I have a similar requirement where email listener is monitoring a email folder. Once email arrives, it needs to create new work object as well as supposed to attach email itself to the newly created work object. Any pointers on how you achieved attachment part would help.