How do I get case number from record in ATF?

MentZ
Kilo Expert

I have created a record in an ATF, but I'm struggling to get the incident-number, I'm only able to get the sys_id. Anyone who could help me get the Incident-number from a record-object? As I have figured it out, this need to be done in a server side script-step.

 

1 ACCEPTED SOLUTION

Hi,

you need to create new and then you would find it during adding the step

1) left nav step configurations

2) create new

3) create input, output variables use script

find_real_file.png

Then you can select it during adding the step in ATF

Regards
Ankur

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

View solution in original post

7 REPLIES 7

Baala T
Mega Guru

Hi,

Are you looking for the ticket which got created thru the ATF execution?

 

Regard,
Bala T

Hi, yes, I want to retrieve the ticket number right after in the next step. But its only possible to get the record.

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you will require to use Custom step and pass the record sys_id to it

output variable of that custom step would be incident number

Output of the custom step can then be used in your next step

regards
Ankur

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

Hi Ankur,
I can't find the 'Custom step' test step in the list, what is the name of the step?