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

@Churchie 

Hope you are doing good.

Did my reply answer your question?

If my response helped please close the thread by marking appropriate response as correct so that it benefits future readers.

Regards
Ankur

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

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

My steps were as follows:

  1. Record Insert for a Windows Server
  2. Server Side Script to sleep for a few seconds (allows Asset to be created)
  3. Access the Asset via its Configuration Item ID from step 1

Thanks to all who replied!

Darren

 

shloke04
Kilo Patron

Hi @Churchie 

Did you try the approach suggested by me. If you are stuck do let me know.

Regards,

Shloke

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

Regards,
Shloke

i will be resuming testing on this today and let you know @shloke04 

thank you for your help.