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 :
Business Central forum

Create XML Text Attribute

(0) ShareShare
ReportReport
Posted on by

Hi,

I am trying to create to export a flat file using an XMLPort by creating an extension. I am able to retrieve the data, however , I would also like to add some texts on each line just before the field attribute.

textelement(Lines)
{


textattribute(mytext) -> I am trying to add text like mytext ='someString'
{
TextType = Text;

}

tableelement(Line; "Gen. Journal Line")
{

fieldattribute(NodeName3; Line."Document No.")
{

}


}
}
Does anyone know how I can do this in AL Code?
Categories:
  • Suggested answer
    Community Member Profile Picture
    on at

    Creat a trigger OnBeforePassVariable of Lines

    trigger OnBeforePassVariable()

    begin

    mytext :='someString';

    end;

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans