Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Manual indicator

Sunshine_aashi_
Tera Contributor

How to add value to manual indicator periodically through scripting?

1 REPLY 1

Tai Vu
Kilo Patron

 

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