Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

Is it possible to bold text for requested for in work notes through workflow run script

AnilM99
Tera Expert

Hi Team,

is there any why to bold text for this - current.request.requested_for.getDisplayValue();

current.work_notes = "This request is created behalf: " + current.request.requested_for.getDisplayValue();

 

Please help me on the same.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron

Hi,

try this

current.work_notes = "This request is created behalf: " + "[code]<b>" + current.request.requested_for.getDisplayValue() + "</b>[/code]";

regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

2 REPLIES 2

Ankur Bawiskar
Tera Patron

Hi,

try this

current.work_notes = "This request is created behalf: " + "[code]<b>" + current.request.requested_for.getDisplayValue() + "</b>[/code]";

regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Mohith Devatte
Tera Sage

HelloAnil you can do this using code tag like below 

current.work_notes = "[code]This request is created behalf: " +"<b>"+ current.request.requested_for.getDisplayValue()+"</b>[/code]";