Can I open the form for a reference field in currently open form in ATF?

Churchie
Tera Guru

Greetings-

I have a need for a testing step where i want to do the following:

  1. perform a record insert for a server
  2. open the previously created server record
  3. 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?

 

1 ACCEPTED SOLUTION

shloke04
Kilo Patron

Hi @Churchie 

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

 

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

View solution in original post

14 REPLIES 14

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!

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

By marking my response as correct or helpful, you contribute to helping future readers with similar issues.
Regards,
Abhijit
ServiceNow MVP

Ankur Bawiskar
Tera Patron
Tera Patron

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

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

there is no output variable available to access the reference field in the lookup record. i believe this will not work but thank you.

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

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