Keep formatting of text when copied into a variable

evaoconnell
Giga Contributor

I have enabled the New Call feature in ServiceNow (Fuji) and have an inbound action that pulls emails into the system into a new call and then I choose if it's a request or an incident.  

If I chose request then it will be one catalog item called Quick Request.   I use the OOB (only a couple of changes) 'CallTypeChanged to Request' business rule to pull the information into the requested item but when info of the new_call description field comes into the requested item description (which is a variable) it loses it's formatting.   Is there any way to keep the formatting correct in the variable?

1 ACCEPTED SOLUTION

Screenshot from my Fuji system... It seems to be there. Not sure why you aren't seeing it. It might be time to call customer support.


find_real_file.png


View solution in original post

28 REPLIES 28

Thanks Chuck for putting me in touch with abhi_r now resolved, so grateful to you both.


Glad you got this working.. My ServiceNow learning started with his TechNow videos. Credit goes to my guru ctomasi.


Let me go thru this thread first and will get back to you.


Use this in the URL in the business rule



var url = 'com.glideapp.servicecatalog_cat_item_view.do?sysparm_id=' + reqItem + '&sysparm_user=' + reqFor + '&sysparm_short_description=' + current.short_description + '&sysparm_description=' + current.description.getHTMLValue();


Thanks for getting back to me Abhinay



Unfortunately I have tried that previously and again now but it doesn't retain the formatting from the new_call.description field.