Issue with Additional comments in Req_item

snowuser111
Kilo Guru

HI,

There is a field in Requested Item --> "Additional comments (customer visible)", but when I put my comments it gets saved and updated in Activity   but not in the same field . How can I apply a condition in one of my Business rule that there are inputs in "Additional comments " since it always shows blank.

I have a business rule in Task table, where I need to apply a condition that if any Additional comments are there, then an event is fired.Also I want to display the value of Additional comments ..............

Anyone can guide please.

comments.png

Thanks

1 ACCEPTED SOLUTION

I have resolved this. Instead of changing in BR , I changed in Email notification by so now its working.


View solution in original post

14 REPLIES 14

snowuser111
Kilo Guru

my BR code is .and in Notification   (on table sc_request) how do I get only the Additional comments in the notification.If I use ${comments}, it shows the last entry from activity but not the value put in additional comments (here VIP TEST)


_____________________________________________________________


        var catItem = new GlideRecord('sc_req_item');


        catItem.get(current.request_item);


        catItem.addQuery();


        if(catItem.comments != '')


            {


 


                      gs.eventQueue('task.send_survey', task, current.requested_for, current.opened_by);


            }


        else if (catItem.comments == '')


        {



                  gs.eventQueue('task.nocomments_survey', task, current.requested_for, current.opened_by);


          }


_________________________________________________________________



comments1.png


Subhajit1
Giga Guru

Additional Comments field is a Journal Type field and the behavior you are seeing is Normal.


The kind of requirement you are looking for should be possible with Large Text field.


For more Information on Journal Fields, please follow this link:-


Using Journal Fields - ServiceNow Wiki


As Subhajit has said, create a new large text field and then add it to the journal formatter.


This can be done by right clicking 'Activity' > 'Configure Activities' and selecting the newly created field.



ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022

Did not get. How? is it create new field as String as large (4000) . And then add where? not aware