ui action

rognomolta
Tera Contributor

The problem requires creating a UI Action in ServiceNow that automatically updates the status of a record in the vpm_activity_instance table based on changes made to the Achieved Date or Expiration Date fields. The status should be updated according to the following rules:

If both Achieved Date and Expiration Date are filled in and the current date falls between them, set the status to "Achieved".
If both Achieved Date and Expiration Date are filled in and the current date is after the Expiration Date, set the status to "Expired".

so i tried with ui action and business rule but not working

 Please provide  best approach

add  a screenshot of the form below

rognomolta_0-1729086122537.png

 

@Ankur Bawiskar , @Dr Atul G- LNG , @Sandeep Rajput ,@Sandeep Dutta 

2 REPLIES 2

Dr Atul G- LNG
Tera Patron
Tera Patron

Sorry mate, not in my scope. 

*************************************************************************************************************
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]

****************************************************************************************************************

Ankur Bawiskar
Tera Patron
Tera Patron

@rognomolta 

so what did you try so far?

please share the script. it should be an easy one with GlideDateTime comparison

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader