Concatenation in breakdown script

venori26
Tera Contributor

my breakdown script is as below:

 

current.vulnerability.sys_id;

 

how do I concatenate a letter 'a' to this?

1 REPLY 1

Bhimashankar H
Mega Sage

Hi @venori26 ,

 

You add try adding a literal 'a' at end of value like

 

var id = current.getValue('vulnerability'); // sys_id as string

var val = id + "a"; //concatenating a

 

and use val as variable value in next lines wherever is it useful.

 

Thanks,
Bhimashankar H

 

-------------------------------------------------------------------------------------------------
If my response points you in the right directions, please consider marking it as 'Helpful' & 'Correct'. Thanks!