
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-01-2018 07:31 PM
Hi all,
I would like to get attachment file name in my inbound action which makes incident.
Is it possible?
* I think this is impossible... because inbound action is unable to get email attachment file name,
and even if sys_attachment can be queried, there isn't no attachment because at that time inbound action haven't made incident yet.
ANY help is welcome.
Best regards,
Tomoaki
Solved! Go to Solution.
- Labels:
-
Personal Developer Instance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-01-2018 08:26 PM
Hi,
Try this!
{slight change in uday's script}
var attachmentName = '';
var test = sys_email.sys_id;
var gr = new GlideRecord('sys_attachment');
gr.addQuery('table_name','sys_email');
gr.addQuery('table_sys_id',test);
gr.query();
if(gr.next()){
attachmentName = gr.file_name;
}
Thanks
Kush
Please mark the answer correct/helpful accordingly!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-01-2018 08:57 PM
Thank you! I could make it done!
Best regards,
Tomoaki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-05-2022 07:34 AM
Hi Could you please let me know how you achieved the development?