Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Autopopulate field populating with html code in workbench

Dedeepya Reddy
Tera Expert

hello 

I have tried to autopopulate the cab approver comments in to the cab recommendation field
here's the below code 


(function executeRule(current, previous /*null when async*/ ) {


    var gr = new GlideRecord('change_request');
    gr.get(current.sysapproval);
    gr.addQuery('approval', 'requested');
    gr.cab_recommendation = current.comments.getJournalEntry(1);
    gr.setWorkflow(false);
    gr.update();


})(current, previous);
the above code is working fine in form view but in workbench view it is populating html code 

eg: <p> comment with time</p>

 

0 REPLIES 0