- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2021 06:12 PM
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();
Solved! Go to Solution.
- Labels:
-
HR Service Delivery
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2021 08:23 AM
I was able to resolve this by adding a widget and on submit client script . thank you verymuch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2022 01:18 AM
Hi Kachu,
Could you please share the code for widget and on submit client script .
thanks in advance support.
Thanks,
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2023 05:50 AM
Can you tell me how you did that?