Quantcast
Channel: ServiceNow Community - Post implementation
Viewing all articles
Browse latest Browse all 108

Switch Statement in Task

$
0
0

Hi all,

I am trying to make a switch statement inside of a task however I don't understand why this isn't working. The short description and description both come up blank when I use the function. When I remove the comment out the function the short_description and description print, but they both say undefined.

Any ideas?

Thanks in advance.

var Group;
getGroup();
task.short_description = "User (" + custom_name + ") access to Groups";
task.description = "Please add user to Groups: " + Group;

function getGroup(Group)
{
switch (current.home_id)
{
case 20:

read more


Viewing all articles
Browse latest Browse all 108

Trending Articles