- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-16-2018 08:07 AM
Hi Experts,
I am trying to add a log activity into a scheduled script using a true/false property. When this property changes to 'true', the log activity should be enabled on that script without any impact to other users' activities(avoiding to activate the logs for everybody) using a System property category. Does anyone know how to get through this?
Thanks!
Solved! Go to Solution.
- Labels:
-
Integrations
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-18-2018 05:40 PM
on your scheduled script add something like
var debug = gs.getProperty('yourpropertyname') == 'true' || false;
than add to script what you want to log something like
if (debug) {
gs.log("Users: " + your field name);
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-18-2018 05:40 PM
on your scheduled script add something like
var debug = gs.getProperty('yourpropertyname') == 'true' || false;
than add to script what you want to log something like
if (debug) {
gs.log("Users: " + your field name);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-19-2018 06:27 AM
Thank you Mike it works!