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

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

Thank you!! that worked.

Thank You @Ankur Bawiskar  this helped me to solve similar requirement.

However can we avoid the below prompt message? after we click on download link in this context.

 

Zuber_0-1665332912825.png

 

it must be coming from browser since you are leaving from that page and have some unsaved changes in form

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