Using System properties in a scoped application

leachy23
Kilo Expert

Hi all, 

I'm currently having issues trying to figure out how to use system properties in a scoped application. 

I want to copy a global property for use in my scope but I cant seem to get it working. We cant use the global property, because it alters the forms within the global scope and negates the point of developing this scoped app. 

The property in question is glide.ui.show_live_feed_activity, like I say I can create the property fine, but its not being called. Do I need to invoke via a script include?

Iooking over my documentation This wasn't covered very well in the App Developer or scripting courses. 

Grateful for all assistance. 

 

 

6 REPLIES 6

Mark Roethof
Tera Patron
Tera Patron

Hi there,

Add the scope name in front of the system property. So if your sys_property is like "glide.ui.show_live_feed_activity"

Call it like:

"x_scope123.glide.ui.show_live_feed_activity"

(where x_scope123 obviously would be your scope name)

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

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

LinkedIn

Hi Mark, 

 

The system does that by default. My question is around why the properties just dont work for the scoped app when they have the scoped prefix. 

I wasnt sure if there are a script include that calls the sys properties but because I dont have that for my scope, maybe they dont work?

So how are you calling your system property in scripting? Can you share that? gs.getProperty should work fine for Scoped apps. Only the scope name has to be added.

So an example from our instance, instead of:

gs.getProperty('close.incident');

Use:

gs.getProperty('x_cnbvs_ehs_incide.close.incident');

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark

---

LinkedIn
Community article list

 

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

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

LinkedIn

Hi there,

Did this solve your question? Or do we need to follow-up on this?

Please mark this answer as correct if it solves your question. This will help others who are looking for a similar solution. Also marking this answer as correct takes the post of the unsolved list.
Thanks.

Kind regards,
Mark

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

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

LinkedIn