Autopopulate field populating with html code in workbench
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2024 12:15 AM
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>
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