We're reclaiming inactive PDIs to keep them available foractive builders.Learn what's changing, who's affected, and how to protect your work. Read More
I needed to check if variable is checkbox and if it is, then return its label.Use current.variables.var_name.getQuestion().getType() to get the variable type var checkboxType = '7';
var varName = <<var_name>>;
var label = '';
var current = new GlideR...
Is description filled by user creating incident? When incident is inserted, do you want to add The Priority value is 4 ?If incident priority is updated, in that case you want to add to description: The Priority value changes to 2
If you want only 3, ...
gs.print(): This method does not write the message to the syslog table unless debug has been activated
gs.log(): Logs a message to the system log and saves it to the syslog table.
Ideally use gs.info() - as the print and log are available only in glo...
Use before Busine Rule
- with condition priority changes
- with script like this:
var currentDescription = current.getValue('description');
//use UI message to store message -> eg: "The priority value is {0}
//and then you can use gs.getMessage(<<mes...
I had an similar issue. Issue was that sys_class for the record has changed to it's base table after cloning. After sys_class was changed to correct table in background script, I was able to delete the record.
There is more information in KB0781969