Add Additional Comment from field value when UI Action button is clicked
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2024 11:16 AM
We have a text field on our Case table called 'Solution Provided' [close_notes]. We also have a UI Action button called 'Propose Solution'. What we'd like to do, is when the agent enters text in the 'Solution Provided' field, then clicks 'Propose Solution', we'd like the following to be added as an Additional Comment in Case Activities.
The following solution has been proposed for this Case:
[Solution Provided text]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2024 12:37 PM
Hi @MStritt
Please try this
current.work_notes=current.getValue('short_description');//please change the name of the field you want to use
current.update();
action.setRedirectURL(current);
Please Mark correct and Helpful if it helps.
***Mark Correct or Helpful if it helps.***
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2024 12:59 PM
Hi Yousaf,
Thanks for the response. I would add this at the end of the script that the current Propose Solution UI Action already has? Also, this needs to be an Additional Comment, and not a Work Note. Would also like to preface each comment with 'The following solution has been proposed for this Case:' So in your case, it would be added as:
The following solution has been proposed for this Case:
Unable to access the shared folder
The value of the field is close_notes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2024 10:54 PM
Hi @MStritt
Yes you have to update the script in 'Propose solution' UI action as below then
then if User click on the 'Propose Solution' UI action then it will get the update in the additional comments if the 'Solution Provided' [close_notes] has value.
Please mark my solution, if that works for you.
Thanks
BK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-01-2024 11:09 AM
Thanks BK.
Would also like to preface the comment with 'The following solution has been proposed for this Case:' So if the text in the close_notes has 'Unable to access the shared folder', it would be added as an Additional comment as:
The following solution has been proposed for this Case:
Unable to access the shared folder