The CreatorCon Call for Content is officially open! Get started here.

Show attachment of parent case on portal

Rosy14
Tera Guru

Hi,

I want to show all the attachment of parent case on portal

Below code is not working

Script include:

var att = new GlideRecord("sys_attachment");
                        att.addQuery("table_sys_id", taskGR.parent);
                        att.query();
                        while (att.next()) {
                            data.attachment = gs.getMessage(att);
                        }
 
HTML:
Attachment: {{data.attachment}}
3 REPLIES 3

vignesh parthib
Tera Guru

Hi @Rosy14 

 

You can refer the below link

Related Attachments not showing Parent/Child incidents attachments? 

 

Thanks,
Vignesh
"If this solution resolves your issue, kindly mark it as correct."

The requirement is to bring all attachment of parent case to child task.

rkrindges
Tera Contributor

Hi!
Did you check the permissions? 
Also, did you try with taskGR.parent.sys_id instead of just taskGR.parent ?