- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2022 07:29 AM
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.
Solved! Go to Solution.
- Labels:
-
Automated Test Framework
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2022 01:22 AM
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
Then you can select it during adding the step in ATF
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2022 10:25 AM
Hi,
Are you looking for the ticket which got created thru the ATF execution?
Regard,
Bala T
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2022 12:19 AM
Hi, yes, I want to retrieve the ticket number right after in the next step. But its only possible to get the record.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2022 12:26 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2022 01:07 AM
Hi Ankur,
I can't find the 'Custom step' test step in the list, what is the name of the step?