When using a UI macro as an item variable, an attachment link in the code works when browsing the item, but does not work when the item is included in the Order Guide.

Steps to Reproduce


  1. Create a UI macro and include add attachment link in the code.

    For example: <?xml version="1.0" encoding="utf-8" ?> <j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null"> <b>Use the paperclip</b> <a onclick="saveCatAttachment(gel('sysparm_item_guid').value, 'sc_cart_item')"> <img title="Attachments..." height="16" src="images/icons/attachment.gifx" border="0" width="16"/></a> <b>to attach items to this request.</b> </j:jelly>

  2. Create a variable and set the condition Type is Macro. Use the macro you just created.

  3. Attach the variable to a service catalog item and try the item.

    The link to add attachment works.

  4. Create a test order guide and include the item created in the rule base.

  5. Try the Order Guide.

    The link to add attachment for the item doesn't work.

Note, the attachment link in the cart template works (the macro in the base system is servicecatalog_cart_template. Use the following link: <a onclick="saveCartAttachment('$[sc_cart.sys_id]');">.

Although this could be a workaround for the client, the client would need to attach files to each item in an order guide.


Do not add an attachment to an item in the order guide. Instead, add the attachment during the checkout process:

  1. Select Checkout.
  2. Select Edit to add the attachment to the cart item.
  3. Select Update Cart, and proceed as normal.

The requested item will then have the attachment.

Related Problem: PRB613156

Seen In

Berlin Patch 4
Dublin EA 8
Eureka Patch 10
Eureka Patch 11
Eureka Patch 11 Hot Fix 2
Eureka Patch 5
Eureka Patch 6
Eureka Patch 9 Hot Fix 1
Fuji Patch 10
Fuji Patch 13 Hot Fix 1
Geneva Patch 3
Geneva Patch 4
Geneva Patch 8
Helsinki Patch 1
Helsinki Patch 5

Fixed In


Associated Community Threads

There is no data to report.

Article Information

Last Updated:2020-02-27 00:42:16