- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2025 04:22 AM
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)
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)
I am not sure how to get the target record sys_id and pass it over to next step(record query)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2025 10:30 AM
Thanks @Ankur Bawiskar
It worked after i added the add timer code to the Run server script step as below
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2025 09:17 PM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2025 05:24 AM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2025 05:34 AM
i had given 40-50 secs that also did not work:(
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2025 05:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2025 05:59 AM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader