importing lead with line breaks in description field

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Slander
    Junior Member
    • May 2025
    • 1

    #1

    importing lead with line breaks in description field

    Hi All,

    I am trying to import some collected leads in CSV form and I need to have the description field keep its multiline formatting to be readable.

    Checking the api i see when the field uses \n for line breaks but if i add this to the test CSV the \n just shows in the text.
    If i then check that lead on the API the \n has become \\n.

    Any help would be great I have only just started using EspoCRM and this is the first time I have not found anything about a problem so i am guessing I have missed something simple.
  • lazovic
    Super Moderator
    • Jan 2022
    • 982

    #2
    Hi Slander,

    Instead of using \n, please try to insert actual line breaks (real newlines, Ctrl + Enter) in the CSV cell. Example:

    Click image for larger version

Name:	image.png
Views:	0
Size:	2.9 KB
ID:	117589

    Text file (.csv):
    Code:
    description,firstName,lastName
    "Test
    test
    test",Test,Test
    ​​

    Comment

    Working...