Update multiple records for testing cases in ATF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-15-2024 01:23 AM
We have a custom table(xyz) in which records are inserted based on some condition on incident table. The number of records inserted is dynamic based on certain policies.
Now, I can move the incident to resolved state only if the assigned to person marks these related records as Completed.
How can we achieve the step of -"assigned to person completing the related records" in ATF?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-18-2024 05:29 AM
Hi @Dr Atul G- LNG
Also, not by using 'run server side script' test step?
Regards
Prakhar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-18-2024 09:37 AM
Hi @misprak
Can be a option, I am not coder, so tough to say it will be done, but give a try and share feedback.
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]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-18-2024 10:12 AM
Hi @misprak,
Give a try with run server side script. (Example: I have tried on Problem record with n number of tasks with below code and it works).
Sample Code: Change the table names as per your requirement (Note: Set the mandatory fields on task in script which might block submission). Attached the sample code at attachment for your reference.
---------------------------------------------------------------------------------------------------------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-18-2024 10:11 AM - edited ‎03-18-2024 07:35 PM
Hi @misprak,
Give a try with run server side script. (Example: I have tried on Problem record with n number of tasks with below code and it works).
Sample Code: Change the table names as per your requirement (Note: Set the mandatory fields on task in script which might block submission). Attached the sample code at attachment for your reference.
---------------------------------------------------------------------------------------------------------------------------------