Extending TASK Table Notes - Active Flag and Close State
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2024 02:05 PM
Hi everyone,
At this post, I will give a note on the active flag and the Close State in TASK table. You must consider this note when creating a custom table that extends TASK table.
We use the State field of task table and add choices. now the note is:
The default "Close" States are which flag the record as INACTIVE !
- Closed Complete (3)
- Closed Incomplete (4)
- Closed Skipped (7)
There is a Business Rule (mark closed) which set active flag false if the state comes to any of these above three states.
Also there is a Business Rule (Task closer) which set active flag false if the state is [3].
Unfortunately, If you have certain new state that you created and you assign it any value of these three, by default, these BRs run and the incident active becomes false!!!
Now what you need to take into consideration is: Override Attributes of the state field as follow:
- Open the Dictionary Entry for the state field of the task table.
- Add a new Dictionary override and use the following
- Table: (use any other table as needed)
- Override attributes > checked
- Attributes > default_close_state=5 (use any other value as needed), or
- Attributes > close_states=7;8;9 (use any other value as needed), or
- Attributes > default_close_state=5, close_states=7;8;9
- Click submit.
Reference: Understanding tasks table "closed" states - ServiceNow Community
Best Regards,
Mohamed Shibl
- 487 Views