Automatically update the Decom date of a CI when the status of the CI changes to Disposed

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2024 01:29 AM
I've a Date field on the CI form called Decommissioned Date (u_decommissioned_date). I want to update this date field automatically when the Status of the CI changes to Disposed (44).
How I can achieve this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2024 03:14 AM - edited ‎06-20-2024 03:16 AM
@Bijay Kumar Sha I think you can write a BR on Status of the CI changes to Disposed and update the u_decommissioned_date field with current time.
If my answer helped you in any way, please then mark it as helpful or correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2024 03:18 AM
Hi
Create a business Rule
Conditions
when:before
Insert & update
filter conditions:
status_fieldname changes
Script:
if(Status_fieldname=='Value of option')
{
current.u_decommissioned_date=gs.nowDateTime();
}
If you find my answer helpful plz click on Thumb. and click on Correct answer.