can we loop through multiple records in ATF

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-13-2024 09:49 AM - edited ‎03-13-2024 09:53 AM
Hi,
I have a requirement wherein i have a table with multiple records. One field is 'A' with values 'Critical', 'Low', 'None'. There are multiple records with the above values. Now I want to validate that the records exist with the value 'Low' value in a loop using ATF. Kindly help.
Regards
Suman P.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-13-2024 10:42 AM
For this, I would use the 'Run Server Side Script' step. This will allow you to write a GlideRecord query to look up the records you need, loop through them, and set the step output based on any conditions you'd like with regards to those records.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-14-2024 05:05 AM
Hi @Community Alums
If I got your requirement correctly,
You can open the table by navigate to module and there you can apply filter or you could use record query.
Regards
Shaqeel
***********************************************************************************************************************
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
Shaqeel