How to copy images of rich label text variables of a catalog item to another environment?

Tomi Corigliano
Kilo Sage

Hi,

 

When I promoted my catalog item to another environment. I noticed that the images were not displayed.

After doing some research I created another update set and did a force update set on the correct images of table sys_attachment by looking up the sys id in the source field of the rich label text variable.

Nevertheless, that didn't solve the problem. When I check the sys_attachment table of the destination environment I can see the images, but when I open (download) them I get the following message:

 

TomiCorigliano_0-1687343585328.png

 

How can I promote my images?

 

Thanks in advance for your help

1 ACCEPTED SOLUTION

Ahmmed Ali
Mega Sage

Hello @Tomi Corigliano 

 

Attachments are stored in ServiceNow in different chunks. It is difficult to add those all records in update set.

 

one way is to add the image/s in images table (db_image), it will capture in update set. Then update your variable to refer those image/s and move the update set to target environment.

 

Thank you,

Ali

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali

View solution in original post

5 REPLIES 5

Ahmmed Ali
Mega Sage

Hello @Tomi Corigliano 

 

Attachments are stored in ServiceNow in different chunks. It is difficult to add those all records in update set.

 

one way is to add the image/s in images table (db_image), it will capture in update set. Then update your variable to refer those image/s and move the update set to target environment.

 

Thank you,

Ali

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali

You can add image in your HTML field with reference link, which you can find in the image record once you create image.

 

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali

Tomi Corigliano
Kilo Sage

How do you refer to the db_image table?

I did it as follows:

<img src="/db_image.do?sys_id=3f50d3391be32d54bd075465604bcb95" />

But it doesn't work

Hello @Tomi Corigliano,

 

Below is the example in my PDI I did for knowledge HTML field, you can co-relate with yours.

 

AhmmedAli_0-1687354968755.png

 

AhmmedAli_1-1687355007665.png

 

 

AhmmedAli_2-1687355032281.png

 

 

It is image name you give in image record.

 

Thanks,

Ali

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali