how can we add an image into a multi row variable set?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2020 11:18 AM
Hi Team,
We are looking for an option to populate an image into a multi row variable set. We didn't find an image type of field in the multi row variable set. Please assist on this If any one had gone through the solution for this kind of requirement in the past.
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2020 02:14 AM
Or a dynamic version:
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<g:evaluate var="jvar_img" object="true" jelly="true">
// query the table the images are stored
var img;
var gr= new GlideRecord('db_image');
gr.addQuery('your query here')//add query to get the image
gr.query();
if(gr.next()){
img = gr.name;
}
img;
</g:evaluate>
<img src="${jvar_img}" height="40px" width="40px"/>
</j:jelly>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2020 10:10 PM
Thank you for the reply. But here multi row variable set is not supporting macro field, so not sure how can we map the field into multi row set from the above code that is in the ui macro.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2020 10:38 PM
Ah you are right. It does show up as an option for a variable, but unable to insert it!
You need an image per row? What is it used for? We have build something custom years ago where it would show images per option. I can see if I still can find it. But that is not done via MRVS but all custom..

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2020 10:26 PM
Hello,
I dont think we have the functionality as of now, but you can always create a Macro variable outside of MVRS for your requirement. You can probably raise a Idea Suggestion to Servicenow.
Please Mark as ✅ Correct if this solves your issue and also mark ???? Helpful if it helps resolve your problem.
Thanks,
Saji