web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Import multiline text from Xmlport

(0) ShareShare
ReportReport
Posted on by 55

Dear all,

I try to import data into a multiline text field in a table.

I created an XMLport and the text field is populated but I do not have a CR LF after each line as in my source file

.BC-Text.pngxmlport.png8865.File.png

Do you have any idea ?

Thanks in advance

I have the same question (0)
  • Suggested answer
    IB-29041624-0 Profile Picture
    1,177 Moderator on at

    Maybe the XML port is not the right tool for this.

    I would try to read the file directly into a blob and parse the file directly from the blob.

  • SYLV1G Profile Picture
    55 on at

    Hello,

    Thanks for your reply, 

    I changed the input file (replace CR and LF by a String [CRLF] because we generated it from another software) and I was able to read the file .

    I replaced the string by CR and LF before to write the String in Business Central

  • Suggested answer
    YUN ZHU Profile Picture
    100,471 Super User 2026 Season 1 on at

    Hi, How about using TextBuilder.AppendLine([Text]) Method.

    https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/textbuilder/textbuilder-appendline-method

    A simple case for export.

    https://yzhums.com/21942/

    Hope this will help.

    Thanks.

    ZHU

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,072 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,129 Super User 2026 Season 1

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 650 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans