trim(
concat(
if(not(empty(items('For_Each')?['Street and House Number'])), items('For_Each')?['Street and House
Number'], ''),
if(and(not(empty(items('For_Each')?['Street and House Number'])), not(empty(items('For_Each')?['Second
Address Line']))), '\n', ''),
if(not(empty(items('For_Each')?['Second Address Line'])), items('For_Each')?['Second Address Line'], ''
),
if(and(or(not(empty(items('For_Each')?['Street and House Number'])), not(empty(items('For_Each')?
['Second Address Line']))), not(empty(items('For_Each')?['District']))), '\n', ''),
if(not(empty(items('For_Each')?['District'])), items('For_Each')?['District'], ''),
if(and(or(not(empty(items('For_Each')?['Street and House Number'])), not(empty(items('For_Each')?
['Second Address Line'])), not(empty(items('For_Each')?['District']))), not(empty(items('For_Each')?
['Postal Code']))), '\n', ''),
if(not(empty(items('For_Each')?['Postal Code'])), items('For_Each')?['Postal Code'], '')
)
)
the address appears like this
10 Any Street\nLondon\nLW14 8LW
It is picking up the \n code as text in the merged document. Do you know if there is another means to achieve this.
Many thanks.