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

@Akiladevi Raje1 

I have shared solution here please check and enhance

How to check Email record in ATF

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

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

 

@Akiladevi Raje1 

Glad to know that my approach worked.

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

@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

@Akiladevi Raje1 

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