cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
281
Views
0
Helpful
2
Replies

Adding a new line in a Java String expession

David Kritzberg
Level 1
Level 1

So Im experimenting with the Create & Send email function in UCCX 12. I have it working, but trying to modify the body of the email to show the information being sent on different rows/lines. (for this purposes I don't need to attach a document or file) Currently I get:

THE EMAIL TEST WAS SUCCESSFUL!!! CSQ Name:TESTCSQCalling Number:+17138817158Called Trigger:5111

What I want to see is:

THE EMAIL TEST WAS SUCCESSFUL!!!

CSQ Name:TestCSQ

Calling Number:+17138817158

Called Trigger:5111

I tried the following syntax, adding the\n (New line escape char) but its not working:

"The Email Test was Successful!!!\n" +

"CSQ Name: " + sPrimeQueue + "\n" +

"Calling Number: " + sCallingNumber + "\n" +

"Called Trigger: " + sCalledNumber

When I applied the above I get:

THE EMAIL TEST WAS SUCCESSFUL!!! \n+ CSQ Name:\n + Calling Number:+17138817158\n + Called Trigger:5111

Cant quit figure what I'm missing/misapplying.

2 Replies 2

Jonathan Schulenberg
Hall of Fame
Hall of Fame

It’s been a minute but I believe it’s supposed to be \r\n.

Anthony Holloway
Cisco Employee
Cisco Employee

Yes, it certainly has been a minute, hasn't it @Jonathan Schulenberg ?  But I do think you need u"\n" instead of just "\n" to make it work.