Click on Resolve button in SOW should copy the close notes to custom field

Community Alums
Not applicable

HI Team,

 

We are using SOW and Now Assist plugin is installed. On the Incident form in SOW when we click on Resolve button, its opening a Dialog and creates a AI solution on Close Notes field. We have created a custom field as "xyz", We want the Close notes should be copied to 'xyz' but its not working. We wrote OnChange Client script on change of Close notes but its not getting triggered.

Can you guide how to resolve the issue?

2 ACCEPTED SOLUTIONS

It would be helpful if you give answers from experience, instead of letting AI give answers.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

View solution in original post

Satishkumar B
Giga Sage
Giga Sage

@Community Alums you can write a 
Create a "After-Update Business Rule" on the Incident table that triggers after the state changes to "Resolved." In the rule, copy the close_notes to your custom field xyz.

 

Condition: State is Resolved

 

(function executeRule(current, previous /*null when async*/) {
        current.u_xyz = current.close_notes; // Replace 'u_xyz' with your custom field name
    }
})(current, previous);

 

 

…………………………………………........................................................................................
Mark it helpful 👍and Accept Solution !! If this helps you to understand.

…………………………………………........................................................................................

View solution in original post

4 REPLIES 4

Rajesh Chopade1
Mega Sage

Hi @Community Alums 

OnChange client scripts typically listen to changes made directly to a field’s value. If the field's value is being modified indirectly (e.g., via a dialog or asynchronous process), the OnChange script may not catch these changes.

 

Instead of relying on the OnChange client script, use an OnSubmit client script to ensure the value of the Close Notes field is copied to the custom field (xyz) when the form is submitted. This is often a more reliable method for capturing changes made by dialogs or asynchronous operations.

 

I hope my answer helps you to resolve your issue, if yes please mark my answer helpful & correct.

THANK YOU

rajesh chopade

It would be helpful if you give answers from experience, instead of letting AI give answers.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Mark Manders
Mega Patron

What is the functionality of the custom field? If the close notes are filled, you can easily use a BR to just copy the content (or flow), or does it need to get in the field before submitting?


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Satishkumar B
Giga Sage
Giga Sage

@Community Alums you can write a 
Create a "After-Update Business Rule" on the Incident table that triggers after the state changes to "Resolved." In the rule, copy the close_notes to your custom field xyz.

 

Condition: State is Resolved

 

(function executeRule(current, previous /*null when async*/) {
        current.u_xyz = current.close_notes; // Replace 'u_xyz' with your custom field name
    }
})(current, previous);

 

 

…………………………………………........................................................................................
Mark it helpful 👍and Accept Solution !! If this helps you to understand.

…………………………………………........................................................................................