Workflow script

Andrew112
Kilo Guru

Hello, I have a workflow script that I want to change the short description.

Here is my code:

 

current.short_description = "TERMINATION: " + current.variables.employee_number + " / " + current.variables.Employee_being_termed.getDisplayValue();

 

but it shows: TERMINATION: / UserName
(no employee number) I verified that the variable was correct

 

Then I thought maybe using a "var" would help:

 

var empnumber = current.variables.employee_number;
current.short_description = "TERMINATION: " + empnumber + " / " + current.variables.Employee_being_termed.getDisplayValue();

 

...still the same

 

FYI:

Employee_being_termed variable is a reference

employee_number is a string.

 

Please help! What am I doing wrong?

1 REPLY 1

Laszlo Balla
Mega Sage
Mega Sage

Try:

 

current.getValue('variables.employee_number')