Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2022 10:07 PM
Hi Vamsi,
Why are we gliderecording twice ?? Also I am not getting sys_id of picture /icon variable for some reason? It is coming blank when I do get Value. All I have is display Value
grAttachment = new GlideRecord('sys_attachment');
grAttachment.addEncodedQuery("sys_id="+YOUR_PICTURE_VARIABLE_VALUE); // Value of ICON variable of the record user submits
grAttachment.query();
if(grAttachment.next()) {
grNew = new GlideRecord('sys_attachment');
grNew.initialize();
Cant we skip 2nd gliderecord and just initialize directly?