Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Image is not appearing in the catalog item

Marco Pasqua
Kilo Sage

Hi,

i'm trying to show an image on a catalog item form. Unfortunately after uploading the image on the db_image table and after configuring the macro, the result is the following:

 

MarcoPasqua_0-1676469161573.png

here's how i have configured this part of the catalog item:

 

MarcoPasqua_1-1676469373578.png

MarcoPasqua_2-1676469398088.png

Please advice

thank you in advance

Marco

2 REPLIES 2

Sonu Parab
Mega Sage

Hi @Marco Pasqua ,
I have tried this one on my PDI and its working.
Try below  script line in your macro.

<img src='0214ADAF-1C76-4E34-966F-0EBD09534402.png' height="50px" width="500px"></img>

1] Variable
Sonu_Parab_0-1676479823935.png
2] macro script. (Here replay your image name accordingly)

Sonu_Parab_1-1676480213296.png
3]output

Sonu_Parab_2-1676480254130.png

Thank you.

 

 

 

I have attached an image in sys attachment table, from thr i want to showcase it on rich text label variable in catalog item. need script for this 

 

pls help