Ankur Bawiskar
Tera Patron

Hi Sujatha,

please try this

Ensure you use valid variable names

var str = '';
if (current.variables.variable1.toString() == 'true') {
    str = str + "Application Access 1,";
}
if (current.variables.variable2.toString() == 'true') {
    str = str + "Application Access 2,";
}
if (current.variables.variable3.toString() == 'true') {
    str = str + "Application Access 3,";
}
if (current.variables.variable4.toString() == 'true') {
    str = str + "Application Access 4";
}

task.short_description = "User selection" + str;

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader