system properties for URL in notifications

snowuser111
Kilo Guru

HI ,

Is there a way I can use system properties for links in Notification body. We do not want to use the hard coded links as these might change time to time.

Please let me know if it can be done.

I have notifications with email scripts which is displaying the links but need to know if we can use system property or any dynamic solutions.

Thanks,

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,



you can create system properties


Go to sys_properties.LIST and create a new property


User email notification script where you can do server side coding.


In mail script you can do var propertyValue = gs.getProperty('nameOfProperty');


template.print('<p>'+propertyValue+'</p>');



Use this newly created notification script in email notification body as ${mail_script: mailScriptName}



Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.


Thanks


Ankur


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

View solution in original post

8 REPLIES 8

Hi Ravi,

system property does allow you to create image type of property

you can try that option. Haven't tried that

Regards
Ankur

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

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Snowuser11,



Any update on this. Can you mark the answer as correct, helpful and hit like. This helps users to search similar question and removes this question from unanswered list. Thanks in advance.



Regards


Ankur


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

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,



Any update on this.



Can you mark my answer as correct, helpful and hit like if you are able to achieve your requirement? This helps in removing this question from unanswered list.


Thanks in advance.



Regards


Ankur


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

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,



Please mark my answer as correct if you are able to achieve the requirement. This helps in removing the question from unanswered list.


Thanks in advance.



Regards


Ankur


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