How to get field value of "Model" in Change request
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2023 06:18 AM
Hi All,
If we select a change request.
The model field inside the form should also show what we selected. (for ex: if we select Normal then field "Model" should show Normal. How to do that?
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2023 09:25 AM
Hi @Tester080393 ,
If you just want to copy 'Type' field value to 'Model' field, then create a before business rule, with Insert and update option ticked and add the below script in advance section.
(function executeRule(current, previous /*null when async*/) {
current.description = current.type;
})(current, previous);
Hope, my understanding is in line with what you are looking for. If it is deviating, please elaborate a furthermore on your requirement.
Please mark helpful/Like, if my solution is in line with your expectation.
Regards,
Gagan k
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2023 09:36 AM
If the change is created through the Legacy interface (interceptor you provided) then the model field SHOULD be empty. If you populate the model field like the business rule proposed above then the workflow on the change will immediately stop. Check the properties on the change workflows and you will see a path that ends the workflow if model has something. Be careful and take more time to fully investigate the how it works before customizing it.
Play with the two properties I gave you. For example, the NEW interceptor will look like this (sys_wizard table).
Add this to your instance name and investigate: /sys_wizard_list.do?sysparm_query=nameLIKEchange&sysparm_view=
If I helped you with your case, please click the Thumb Icon and mark as Correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2023 11:28 PM
@Sebastian,
You are right, if I use a business rule or a Client script as @Community Alums suggested. It throws a error on a form saying "Match not found, reset to original".