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 :
Microsoft Dynamics AX (Archived)

how to insert a new line through a container using coins()?

(0) ShareShare
ReportReport
Posted on by

hi,

i am trying to display multiple transactions lines into a text file using a container. but all the lines are being printed on the same line when i want each transaction to be printed on a new line. so i am using the following statement:

container con = conins( con, 1 , custacc + custname + "\n");

the above statement does not work. kindly help.

*This post is locked for comments

I have the same question (0)
  • Martin Dráb Profile Picture
    239,364 Most Valuable Professional on at

    What do you mean by "it doesn't work"? Did you get an error?

    I suspect you actually have a problem in some other code that is trying to "print" the line; unfortunately you didn't tell us anything about it.

    By the way, why are you using a container in the first place?

  • Community Member Profile Picture
    on at

    no it is not giving any error but it isnt printing on the next line either. actually the method where i am inserting the container is called from file.writeExp(methodname())  and in this method i am inserting into the container.

    i need to insert multiple fields of different types thats why im using a container.

  • Suggested answer
    Heinz Schweda Profile Picture
    1,367 on at

    Hello Sanaa, have you set your file.outFieldDelimiter() according to docs.microsoft.com/.../aa656034(v=ax.50)

  • Martin Dráb Profile Picture
    239,364 Most Valuable Professional on at

    Then I think that conins() indeed does work and we should look at your actual problem ("printing"). Please tell us more about that code and the observed behavior.

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 March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 26

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans