Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to insert line break in Flow variable in Flow designer?

Sunil Kumar_ P
Tera Contributor

Hi,

I have created a flow variable and I would need to insert the line breaks in that. The format should like the below.

Ex:

Device -  Abc

Serial Number - Xyz

Can any help suggest how this can be done please?

Thanks

3 REPLIES 3

Patryk Misiasze
Kilo Contributor

Hi, 

Try using <br/> where you need a new line.

In your case it would be something like this: 

Device -  (pill containing Abc) <br/>Serial Number - (pill containing Xyz) 

 

Sunil Kumar_ P
Tera Contributor

Hi Patryk,

I have tried it but no luck. However, I am able to use the replace string transform function with <br /> in it and it worked.

 

Thanks

Are you using it in Flow Logic 'Set Flow Variables'? It worked well for me. 

Anyway, I'm glad you were able to solve your problem.