0
  1. Create variable Type – Custome
  2. Create UI macro
  3. [Name – url_test , API Name – Will be auto generated]
  4. Write below code within XML of UI macro

<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<a href="https://www.workingcode.in/" target="_blank">Link to Working code</a>
</j:jelly>

4. Add your UI Macro in your custome variable

UI Macro – Create external link for platform view in service catlog servicenow
Working Code Asked question July 11, 2023