Line Break in Profile Mapping Skip to main content
https://support.okta.com/help/answers?id=9062a000000bmrzqay&refurl=http%3a%2f%2fsupport.okta.com%2fhelp%2fanswers
How satisfied are you with the Okta Help Center?
Thank you for your feedback!
How satisfied are you with the Okta Help Center?
1
2
3
4
5
Very Dissatisfied
Very satisfied
Enter content less than 200 characters.
Ask Search:
Nathan AcksNathan Acks 

Line Break in Profile Mapping

When creating a profile mapping, how can you insert a line break into a concatenated string?

In my case, I'm trying to create a mapping from Okta into the Google addressesWorkFormatted variable. I want to do something like the following:
user.streetAddress + "\n" + user.city + ", " + user.state + " " + user.zipCode -> addressesWorkFormatted
The problem is that "\n" is treated as a string literal, rather than an escape sequence. So is \r, and %0A, and 
, and so far everything else I can think of.

Is this impossible to do? If not, what should I use to get a line break here?
Bogdan NitescuBogdan Nitescu (Okta, Inc.)
I belive this (http://developer.okta.com/reference/okta_expression_language/#string-functions) article reflects what are you trying to do.
 
Nathan AcksNathan Acks
Unfortunately, not so much. There's a lot of great functions available, but none that I can see that change the behavior of how Okta interprets a string.

To rephrase a bit: As part of a profile mapping, I wish to specify a literal line feed character. How do I do this?