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
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  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

2 REPLIES 2

Ankur Bawiskar
Tera Patron
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  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Mohith Devatte
Tera Sage
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]";