Posted: 21 Mar 2019 6:05 EDT Last activity: 15 Jul 2020 11:29 EDT
Inbound Email File name "original-email.eml" how to change to this file name according to Subject of the Email
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.