Hi Guys,
I am able to send attachments through soap message successfully,but I want to send the most recently created attachment in soap message is there a way to do that?This is the busins rule that i have used:
var sys = current.sys_id;
var que = new GlideRecord('sys_attachment');
que.addQuery('table_sys_id', sys);
que.addQuery('table_name', current.getTableName());
que.orderBy('sys_updated_on');
que.query();
while(que.hasNext() && que.next()) {
//do something....
var sa = new GlideSysAttachment();
var StringUtil = new GlideStringUtil();