Manual indicator
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-06-2023 02:03 AM
How to add value to manual indicator periodically through scripting?
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-06-2023 04:23 AM - edited ‎10-06-2023 04:24 AM
Hi @sri vijaya
The Indicator Score is stored in this table "Score Level 1 [pa_scores_l1]" and "Score Level 2 [pa_scores_l2]" for 2 levels of breakdown.
Let try the script below!
var indicator = '308'; //Manual Indicator
var value = '100';
var date = '2023-10-01';
insertScore(date, indicator, value);
function insertScore(date, indicator, value){
var grScore = new GlideRecord('pa_scores_l1');
grScore.initialize();
grScore.start_at = date;
grScore.indicator = indicator; //Manual Indicator
grScore.value = value;
grScore.insert();
}
Let me know if it works for you.
Cheers,
Tai Vu