Skip to main content

Notifications

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

:

  • Suggested answer
    blujay712 Profile Picture
    40 on at
    RE: Linefeed in infobox

    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

  • ToddB Profile Picture
    on at
    RE: Linefeed in infobox

    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/.../

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Zain Mehmood Profile Picture

Zain Mehmood 462 Moderator

#2
Danny Bilodeau Profile Picture

Danny Bilodeau 156 Moderator

#3
Laurens vd Tang Profile Picture

Laurens vd Tang 120 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans