
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2022 05:52 AM
Greetings-
I have a need for a testing step where i want to do the following:
- perform a record insert for a server
- open the previously created server record
- open a reference field on that form, for example the 'asset' field.
I am having trouble figuring out how to open a referenced field on a currently open form. In this case, I want to open the asset record that gets created after inserting the server CI.
Anyone kind enough to assist in how this can be done? I'm struggling with figuring out exactly how to set up any outputs to grab data to use to open the referenced field but then again, maybe I'm on the wrong path?
Solved! Go to Solution.
- Labels:
-
Automated Test Framework
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2022 04:34 AM
Hi
Please follow the steps below to achieve your requirement:
1) When you create a CI in Server class , Asset record does not get created instantly and you need to put a Timer in your ATF flow and then check for Asset record which you want.
2) Once thee timer has been put then use the step "Record Query" and put a filter in this Record Query step by checking Configuration item is same as you have created in your first step.
Hope this helps. Please mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2022 07:46 AM
I see what you are saying Abhijit, my apologies.
i didnt realize you were referring to an ATF step 'Run Server Side Script'.
let me see if i can figure out how to get at those form variables.
i appreciate your time!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2022 03:40 AM
Hope you understood provided solution and implemented accordingly.
If you have further question then please let us know.
If your issue is resolved then please mark appropriate answer as Correct or Helpful so that other can get benefits from it.
Thanks and Regards,
Abhijit
Regards,
Abhijit
ServiceNow MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2022 06:38 AM
Hi,
you can use Lookup record step and search on that table with that asset field
Then in next step you can use Open an Existing record based on previous 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
02-24-2022 08:14 AM
there is no output variable available to access the reference field in the lookup record. i believe this will not work but thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2022 07:13 PM
yes my bad.
you can use Run Server Side Script step to store the sys_id
output of this can be accessed in Open existing record step
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader