Question

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)
-
Accepted Solution

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.

I think we have to write our own activity to deleteattachments.

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.

Hi Rachit,
I am not able to find this activity. Can you pls provide more details?
Thanks,
Mayank

I think it can be done through ootb of pzDeleteEmbedAttachment.

I cant find it on search in 7.1.7.
Could you pls suggest ?
Thanks

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

Hi Divya,
I can see only untill Pega-ProcessEngine:07-10-16, not after that, in my version.
What should I do ?
Thanks,
Mayank

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.

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,

Hi Lochan,
SR-C60666 is created to track this.
Thanks,
Mayank
Accepted Solution

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.