- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2025 03:52 AM
Hi
I'd like to track the number of times a field changes in the Activities section on a form. There is a 'Outcome' field that has been added to the form & I want the Activities notes to increment number of times that field has been changed. I am working with the Change Task table.
I would also this number to be visible in a read only field that is displayed on the form. What is the most straightforward (ie - beginner level 😊) way of achieving this?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2025 06:05 AM
your business rule should be Before and not after
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
02-10-2025 03:58 AM
Hi @thrsdy1512
You can write a before Insert/update BR which triggers when 'Outcome || changes'
In the script part use below code : Give the field name of the number field which is storing the count
current.fieldname = current.fieldname +1 ; //use proper field name here
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2025 04:00 AM
I agree with what Mark has mentioned.
We would like to know the business use-case for this.
You can create a field as per suggestion by Mark and increment it everytime field is changed.
Please let us know if any further help required.
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
02-10-2025 04:02 AM
Hi @thrsdy1512
Could you clarify what your business case is in this context, and what you plan to do after retrieving these records? Understanding the objective will help in determining the next steps and how to handle the data effectively.
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]
****************************************************************************************************************