How to call instance version in email script

Amol Pawar
Tera Guru

Hi Experts,

I want to send one notification that contains an instance URL in that notification. I want to add an instance version as well in that notification. Like (Instance Version: Vancouver (if possible add patch number as well like Vancouver-07-06-2023__patch9-hotfix2-06-11-2024)

 

Please let me know how to call the instance version in the email script so that we can send that in the notification.

Thanks in advance,

Amol

1 ACCEPTED SOLUTION

Akshay Gupta2
Kilo Sage

Hi @Amol Pawar ,

 

There is one system properties that you can use to achieve your requirement.

 

Property name - glide.buildtag.last.

 

Solution - You can create one Mail Script and call this property with gs.getProperty();

 

Example - 

gs.getProperty('glide.buildtag.last');
//result - glide-vancouver-07-06-2023__patch9-hotfix2-06-11-2024
 
Please mark as solution and helpful.
Thanks 
Akshay

View solution in original post

4 REPLIES 4

RAMANA MURTHY G
Mega Sage
Mega Sage

Hello @Amol Pawar ,

 

In ServiceNow instance OOB we have a glide.buildtag.last system property which stores latest build name and patch number.  (mid.version is another system property)

 

in email script you can use gs.getProperty('glide.buildtag.last') method which returns the value of the glide.buildtag.last system property

 

 

Please mark my answer helpful  & correct if it helps you
Thank you

G Ramana Murthy
ServiceNow Developer

Mark Roethof
Tera Patron
Tera Patron

Hi there,

 

Such a value is stored in system property "glide.buildtag.last". To get that into a notification, you would need to create a mail script. In the mail script obviously using regular ServiceNow scripting like gs.getProperty.

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Akshay Gupta2
Kilo Sage

Hi @Amol Pawar ,

 

There is one system properties that you can use to achieve your requirement.

 

Property name - glide.buildtag.last.

 

Solution - You can create one Mail Script and call this property with gs.getProperty();

 

Example - 

gs.getProperty('glide.buildtag.last');
//result - glide-vancouver-07-06-2023__patch9-hotfix2-06-11-2024
 
Please mark as solution and helpful.
Thanks 
Akshay

Amol Pawar
Tera Guru

Hi @RAMANA MURTHY G@Mark Roethof, and @Akshay Gupta2,

 

Thank you so much for your quick reply.

Yes, it worked.

 

Thank you,

Amol