The CreatorCon Call for Content is officially open! Get started here.

Add Additional Comment from field value when UI Action button is clicked

MStritt
Tera Guru

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]

 

 

8 REPLIES 8

Yousaf
Giga Sage

Hi @MStritt 
Please try this 

Yousaf_0-1719430521196.png

 

Yousaf_1-1719430592446.png

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.***

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

Bhavya11
Kilo Patron
Kilo Patron

Hi @MStritt 

 

Yes you have to update the script in 'Propose solution'  UI action as below then

 

Bhavya11_0-1719467244377.png

 

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.

 

Bhavya11_1-1719467547572.png

Please mark my solution, if that works for you.

 

 

Thanks

BK

 

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