how to create a macro variable as is its not available on catalog item variables

Ibrahim19
Tera Contributor

I would like create a macro variable but this option is not available

 

find_real_file.png

1 ACCEPTED SOLUTION

Hi,

UI macros won't work on portal they work only on native view

For portal you can create custom widget and mention it in the Widget field

Widget HTML you can add this

<p><a href="/sys_attachment.do?sys_id=7e594933db1f0910c9218f67059619fa" title="Click Here to Download the Attachment">Click Here to Download the Attachment</a></p>

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

8 REPLIES 8

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you need to use Type as Custom then you can select UI macro

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi,

find_real_file.png

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

HI Ankur,

 

thank you for your reply. I did this as you described but the variable is not visible on service portal.

 

Regards

Ibrahim

Here is my UI Macro code

___________

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

 

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

 

<p><a href="/sys_attachment.do?sys_id=7e594933db1f0910c9218f67059619fa" title="Click Here to Download the Attachment">Click Here to Download the Attachment</a></p>

 

</j:jelly>

____________

 

Regards

Ibrahim