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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Suggested Answer

Linefeed in infobox

(0) ShareShare
ReportReport
Posted on by 10

Developing on D365FO

I'm trying to make a line feed in a infobox, but it won't work, in many forums people say that \n will do the job.

Example

public static void main(Args _args)
{
str infostr = 'FirstLine\nSecondLine';

Box::info(infostr);

}

This returns "FirstLine SecondLine" the \n is converted to a space

:

I have the same question (0)
  • ToddB Profile Picture
    Microsoft Employee on at

    Hi Carsten,

    In taking a look into this I found the below which states "Dynamics AX development team mentions that this is the limitation of D365FO due to security reason."

    Line break does not work in message box in D365FO

    experience.dynamics.com/.../

  • Suggested answer
    blujay712 Profile Picture
    40 on at

    Have you tried the AX2012 solution for infolog line feed?

    This will list each output on a separate line within the infolog

         info(strFmt('Journal number: %1',ljt.JournalNum));
         info(strFmt('Account type: %1',ljt.AccountType));
         info(strFmt('Payment status: %1',ljt.PaymentStatus));
         info(strFmt('Class Id: %1',vpmt.ClassId));
         info(strFmt('Class Id: %1',vpf.bankFormat));                                    

    pastedimage1616522146168v2.png

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Laurens vd Tang Profile Picture

Laurens vd Tang 88 Super User 2026 Season 1

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 77 Super User 2026 Season 1

#3
Sagar Suman Profile Picture

Sagar Suman 64 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans