- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2022 11:43 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2022 12:39 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2022 12:02 AM
Hi,
you need to use Type as Custom then you can select UI macro
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2022 12:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2022 12:13 AM
HI Ankur,
thank you for your reply. I did this as you described but the variable is not visible on service portal.
Regards
Ibrahim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2022 12:16 AM
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