Question

Cognitonic Systems
AU
Last activity: 20 Jun 2025 11:44 EDT
How to Delete the Attachment based on attachment category permanently form case
Hi
I'm trying to delete the attachment from case permanently writing an activity
Loop D_AttachmentList
Call pyCheckAttachmentLinks
Call pyDeleteAttachment
It is throwing an error that pyStreamName is null , even it is passing parameters
Can anyone suggest the approach to achieve it
Solution:
1. write an activity and name it as DeleteAttachments
2. In that we need to fetch the related attachment for the case by passing the case ID, linkrefto key.
3. now by calling pyCheckAttachmentLinks by passing required parameter.
4. Now in the next step call pyDeleteAttachment and pass required parameter.
5. now open the case and check the attachments will be deleted.
Thanks
Bhargav Kumar Nandyala
Senior Software Engineer
***Edited by Moderator Rupashree to add Capability tags***