How to prevent task based fields from getting updated

Rose17
Tera Contributor

Hi All,

 

I have a custom table which is extending Task table so all the task fields are inherited in custom table.

 

Existing configuration- When the ticket is marked as closed, task fields(which are on custom table form)- 'closed' and 'closed_by'  gets auto-populated with current date and time value(for closed field) and logged-in user value( for closed_by field).

 

Issue is- After the fields getting autopopulated with current values mentioned above, if someone updates the record or any form change is done or any field is updated and the record is saved, the 'closed' field again gets updated.


Requirement is- Once the ticket is marked as closed, and once the closed and closed-by fields gets autopopulated with values, the value should never be changed again even though any form change is done and the record is saved.


The autopopulated values in the fields should remain the same even after the record gets updated multiple times.

 

I tried to check the BR's on Task table and tried deactivating some in which closed and closed_by fields are updated, but it doesnt seem to work.


Can someone help me resolve this?

@Ankur Bawiskar Your help is highly appreciated.

Thanks in advance.

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@Rose17 

you should update the OOB BR which is handling this to check if those fields are empty or not

If empty then only update.

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

There is a OOB BR- which is already checking if empty then only update. 
and the condition for the BR is- current.active.changesTo(false).
Which BR are you talking about?