how can we add an image into a multi row variable set?

mmr
Tera Contributor

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.

8 REPLIES 8

Willem
Giga Sage
Giga Sage

You can add a UI Macro to the Multi Row Variable Set. Please follow these instructions on how to make attachment available via a UI Macro:

https://community.servicenow.com/community?id=community_question&sys_id=cc7b4f21db9cdbc01dcaf3231f96...

mmr
Tera Contributor

Thanks Willem for reply on this.

Here we are not looking for an attachment in the multi row set. We are having the actual information and image on the custom table and we are retrieving that information from custom table to multi row set. Here we are able to populate other information in the multi row set but we didn't find the option to display the image on the multi row set.

You are welcome. The principal is the same. But instead of the ui macro code to add attachment, just show the image with tag

Like this:

<?xml version="1.0" encoding="utf-8" ?>

<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">

   <img src="yourimage.jpg" height="40px" width="40px"/>

</j:jelly>

 

You can adjust the height and width.