Question
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
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.
CollabPartnerz
IN
I think we have to write our own activity to deleteattachments.
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.
IBM India PVT LTD
IN
Hi Rachit,
I am not able to find this activity. Can you pls provide more details?
Thanks,
Mayank
CollabPartnerz
IN
I think it can be done through ootb of pzDeleteEmbedAttachment.
IBM India PVT LTD
IN
I cant find it on search in 7.1.7.
Could you pls suggest ?
Thanks
-
mark Badua
IBM India PVT LTD
IN
Is it available in 7.1.7 ??
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
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
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.
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,
IBM India PVT LTD
IN
Hi Lochan,
SR-C60666 is created to track this.
Thanks,
Mayank
Pegasystems Inc.
IN
Thanks Mayank!
Accepted Solution
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.