Question
![](https://accounts.pega.com/sites/default/files/pega-user-image/368/REG-367959.png?source=PUMINIT)
![](https://accounts.pega.com/sites/default/files/pega-user-image/368/REG-367959.png?source=PUMINIT)
IBM India PVT LTD
IN
Last activity: 30 Nov 2018 11:07 EST
Is it possible to remove attachments from main case on unmerge??
Description :
User has two work objects and both are having some attachments. When he merges 2 cases using a custom functionality, the attachments from one case are copied to another case ( main case) .
Now if user unmerges them, the attachments are still in main case, they are not removed from main case.
Steps to Reproduce :
1. Merge 2 cases with attachments using custom functionality.
2. Notice that the attachments from one case are copied to other.
3. Unmerge them.
4. Attachments from one case are not removed from another case.
So is it possible to remove copied attachment from the main case after unmerge??
***Edited by Moderator Marissa to update platform capability tags****
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2023-07/f7f35052-5e7d-4ed9-ada9-87594f1d3c63.png?itok=bz3Ms_gZ)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2023-07/f7f35052-5e7d-4ed9-ada9-87594f1d3c63.png?itok=bz3Ms_gZ)
Pegasystems Inc.
US
Upon reviewing the associated Support Request, the following was the resolution:
The activity is added from pega-processengine:07-10-25 ruleset version which corresponds to Pega 7.2.1 version.
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
CollabPartnerz
IN
I think we have to write our own activity to deleteattachments.
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689877000/122ddbf9-8ed7-431e-8c0c-0892f658c39d.png?itok=HwmzfVHs)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689877000/122ddbf9-8ed7-431e-8c0c-0892f658c39d.png?itok=HwmzfVHs)
Pegasystems Inc.
US
You can use the OOTB activity "pzDeleteEmbedAttachment" to delete the attachment, after unmerge has been performed. For this, you can use when the condition or a flag using which it can decide whether to delete the attachment.
![](https://accounts.pega.com/sites/default/files/pega-user-image/368/REG-367959.png?source=PUMINIT)
![](https://accounts.pega.com/sites/default/files/pega-user-image/368/REG-367959.png?source=PUMINIT)
IBM India PVT LTD
IN
Hi Rachit,
I am not able to find this activity. Can you pls provide more details?
Thanks,
Mayank
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689954000/f7151e69-7bd9-4702-be03-ebb6f0beb05f.jpg?itok=GWX3Wdig)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689954000/f7151e69-7bd9-4702-be03-ebb6f0beb05f.jpg?itok=GWX3Wdig)
Adaps
IN
I think it can be done through ootb of pzDeleteEmbedAttachment.
![](https://accounts.pega.com/sites/default/files/pega-user-image/368/REG-367959.png?source=PUMINIT)
![](https://accounts.pega.com/sites/default/files/pega-user-image/368/REG-367959.png?source=PUMINIT)
IBM India PVT LTD
IN
I cant find it on search in 7.1.7.
Could you pls suggest ?
Thanks
-
mark Badua
![](https://accounts.pega.com/sites/default/files/pega-user-image/368/REG-367959.png?source=PUMINIT)
![](https://accounts.pega.com/sites/default/files/pega-user-image/368/REG-367959.png?source=PUMINIT)
IBM India PVT LTD
IN
Is it available in 7.1.7 ??
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2023-11/46daa9d6-f3fb-42ad-b6a5-95eecc782bf3.jpg?h=bda26cd1&itok=sy_eLS1O)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2023-11/46daa9d6-f3fb-42ad-b6a5-95eecc782bf3.jpg?h=bda26cd1&itok=sy_eLS1O)
Areteans
AU
It should be available in 7.1.7, why because rule is in Pega-ProcessEngine:07-10-25 ruleset version.
Try searching with old:pzDeleteEmbedAttachment, then you should be able to get it
-
unni krishnan
![](https://accounts.pega.com/sites/default/files/pega-user-image/368/REG-367959.png?source=PUMINIT)
![](https://accounts.pega.com/sites/default/files/pega-user-image/368/REG-367959.png?source=PUMINIT)
IBM India PVT LTD
IN
Hi Divya,
I can see only untill Pega-ProcessEngine:07-10-16, not after that, in my version.
What should I do ?
Thanks,
Mayank
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2023-11/46daa9d6-f3fb-42ad-b6a5-95eecc782bf3.jpg?h=bda26cd1&itok=sy_eLS1O)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2023-11/46daa9d6-f3fb-42ad-b6a5-95eecc782bf3.jpg?h=bda26cd1&itok=sy_eLS1O)
Areteans
AU
I guess you need to check with Pega Support people by raising an SR.
In mean while, you can try the below one:
You have to write own code which includes below:
1. Execute report (pyGetAttachmentFieldInfo of Link-Attachment class) with valid parameters
2. Loop through the results and call pxDeleteRecord & DeleteAttachment activities
3. Commit
4. Java Code for reloading Attachments page
Hope this helps you.
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689951000/acf9b3f6-41e7-4ef2-9e55-8da39714b54f.jpg?itok=JYQYUbWS)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689951000/acf9b3f6-41e7-4ef2-9e55-8da39714b54f.jpg?itok=JYQYUbWS)
Pegasystems Inc.
IN
Hi Mayank,
Do let us know the SR# if you end up creating one. Also, please mention the URL to this post during creation.
Thanks,
![](https://accounts.pega.com/sites/default/files/pega-user-image/368/REG-367959.png?source=PUMINIT)
![](https://accounts.pega.com/sites/default/files/pega-user-image/368/REG-367959.png?source=PUMINIT)
IBM India PVT LTD
IN
Hi Lochan,
SR-C60666 is created to track this.
Thanks,
Mayank
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689951000/acf9b3f6-41e7-4ef2-9e55-8da39714b54f.jpg?itok=JYQYUbWS)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689951000/acf9b3f6-41e7-4ef2-9e55-8da39714b54f.jpg?itok=JYQYUbWS)
Pegasystems Inc.
IN
Thanks Mayank!
Accepted Solution
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2023-07/f7f35052-5e7d-4ed9-ada9-87594f1d3c63.png?itok=bz3Ms_gZ)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2023-07/f7f35052-5e7d-4ed9-ada9-87594f1d3c63.png?itok=bz3Ms_gZ)
Pegasystems Inc.
US
Upon reviewing the associated Support Request, the following was the resolution:
The activity is added from pega-processengine:07-10-25 ruleset version which corresponds to Pega 7.2.1 version.