How to add Attachment icon as a variable in multi row variable set?

Community Alums
Not applicable

There is a requirement to show attachment icon on every row in the multi row set table. If we use attachment macro or attachment UI page script that we use in catalog item variables it is throwing an error saying "Invalid insert in multi row variable set".

 

Below is the script used in UI page:

<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<button type="button" onclick="saveCatAttachment(gel('sysparm_item_guid').value, 'sc_cart_item')">Add Attachment</button>
</j:jelly>

 

The above script is working fine in catalog item variables but not working in multi row variable set.

1 ACCEPTED SOLUTION

asifnoor
Kilo Patron

Hi,

The macros are not supported in multi row variable sets. Hence it is not working for you.

Kindly refer to this link for the variables that are not supported in multi row variable set.

https://docs.servicenow.com/bundle/newyork-it-service-management/page/product/service-catalog-manage...

Kindly mark the comment as a correct answer and also helpful if this answers your question.

View solution in original post

2 REPLIES 2

asifnoor
Kilo Patron

Hi,

The macros are not supported in multi row variable sets. Hence it is not working for you.

Kindly refer to this link for the variables that are not supported in multi row variable set.

https://docs.servicenow.com/bundle/newyork-it-service-management/page/product/service-catalog-manage...

Kindly mark the comment as a correct answer and also helpful if this answers your question.

Pradyumna Das
Tera Expert

Please find the below Link to add the attachment type of variable in the mrvs 

https://community.servicenow.com/community?id=community_article&sys_id=ff89e9f51b789110c16b43f6fe4bcb02