Workflow script

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2023 07:34 AM - edited 08-16-2023 07:34 AM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2023 07:44 AM
Try:
current.getValue('variables.employee_number')