Run Server Side Script step in ATF is not filling the output value.

Michel
Tera Contributor

Hello, I am running a server side script step in ATF and test result is returning success but the issue is that the output variable is empty although i am filling it in the script and the result is not empty.

Can anyone tell me what's the issue?

NB: the response variable is declared in the configuration

 

find_real_file.png

find_real_file.png

9 REPLIES 9

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you need to set 2 output variables for run server side script step which are mandatory

outputs.table = 'table name'; // such as incident
outputs.record_id = 'record sys_id'; // such as incident record sys_id

then you can use that record_id in the next step to open the record

find_real_file.png

Regards
Ankur

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

Hi Ankur,

I tried to fill the table and the record id as you mentioned but i still have the same issue.

and table and record variables were not filled

Hi,

please share your script

also you should add this line

outputs.table = 'table name'; // such as incident
outputs.record_id = 'record sys_id'; // such as incident record sys_id

stepResult.setSuccess();

return true;

Regards
Ankur

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

Hello,

I added the return true but nothing changed.

find_real_file.png

find_real_file.png