ATF Record not appearing in list

adaomoji
Tera Contributor

Hello all, I am testing a catalog item that generates a request for a laptop. When I manually test this item, after submitting the form, the record is saved in the Requests [sc_request] table successfully.

 

However, when I recreate this process using ATF, the error I get is: "FAILURE: Failed to open the record with id '' in the 'Request' list. Record is not present in the list". Below are the steps of my test

 

1. Create a User (HR, not impersonated)

2. Create a User 

3. Open a catalog item

4. Set variable values

5. Validate variable values

6. Order a catalog item

7. Impersonate (HR approver)

8. Navigate to Module ('Requests'  module in 'Service Catalog' Application)

9. Open a record in a list (Error)

 

Does anyone know how I can resolve this issue?

10 REPLIES 10

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @adaomoji 

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0688922

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0546729

 

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Ethan Davies
Mega Sage
Mega Sage

In your ATF flow the HR User should be navigating to Self-Service > My Approvals to approve the record. You could then specifically search for the Approval Related to the Request you just submitted with the Open record ATF Action. Your HR user may not have access to the REQUEST record and may only have access to the REQUESTED ITEM record on which the approval sits, so navigating to the list of REQUESTS may be causing the error here. Could you provide some screenshots for steps 8 and 9 if the above does not work please?

Hi @Ethan Davies, thanks for your reply. In my case, once the request is submitted, it is automatically approved. All HR has to do is navigate to all the requests and change the State to Closed Complete. I have impersonated HR and they have access to both REQs and RITMS. Below are my test steps and error message.

adaomoji_0-1700582323451.png

adaomoji_1-1700582372199.png

For the output values in your Order Catalog Item step - is the table_name stated as sc_request or sc_req_item?