ATF steps for Record query in an inbound action issue

Akiladevi Raje1
Giga Guru

I need to create an ATF where i am checking the creation of case record with some field validation through inbound action. For this, i had used  1) Generate Inbound email step 2) Record query (querying the table sn_customerservice

_case and sys ID in Step1) generate inbound step->email reference -> target)

AkiladeviRaje1_0-1745320531943.png

 

But the test results says no record matching for this condition, but when i check manually in the sys_email table and target record , the condition matches)

AkiladeviRaje1_1-1745320808124.png

 

I am not sure how to get the target record sys_id and pass it over to next step(record query)

2 ACCEPTED SOLUTIONS

Akiladevi Raje1
Giga Guru

Thanks @Ankur Bawiskar 

 

It worked after i added the add timer code to the Run server script step as below

AkiladeviRaje1_0-1745342909623.pngAkiladeviRaje1_1-1745343006739.png

 

View solution in original post

@Akiladevi Raje1 

It looks like you marked your own response as correct.

The link I shared helped you where it talked about using Run Server Side Script step

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

View solution in original post

9 REPLIES 9

Ankur Bawiskar
Tera Patron
Tera Patron

@Akiladevi Raje1 

try to give some timeout for Step of Record Query i.e. 10/15 seconds

Also the user with which you are testing has READ access to sys_email table

Try testing with admin user and see if it works

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

i had given 40-50 secs that also did not work:(

AkiladeviRaje1_0-1745325439762.png

 

@Akiladevi Raje1 

is it working when you test the ATF with admin role user?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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