Attachment variable is not attaching the attachment o the case.

Kachu
Kilo Sage

Hi Community, I have Created a  attachment variable  on the record producer. Ant that task is submitted by the to-do task. i.e "Submit Catalog item". But when the attachment is added that attachment is not showing on the HR case.

I have mapped the field with "File_attachmnet " field type on HR case. i also tried to add code on record producer to copu the attachment. But its not working can any one help me with this ?

var gr = new GlideRecord('sys_attachment');
if(gr.get(producer.attach_covid_report)){ //attachment field name
	gr.table_name='HR Employee Relations';     //copy to table name
	gr.table_sys_id=current.sys_id;//copy to record sys_id
	gr.insert();

 

1 ACCEPTED SOLUTION

I was able to resolve this by  adding a widget and on submit client script . thank you verymuch

View solution in original post

6 REPLIES 6

Hi Kachu,

Could you please share the code for widget and on submit client script .

thanks in advance support.

 

Thanks,

Sunil

Can you tell me how you did that?