XML Order Import Articledescription

Dear Forum members im quit new to NAV and new to this forum.
I have a question about XML order import.

This is a XML code provided by Microsoft MSDN

<Root>
<Header>
<DocumentType></DocumentType>
<SellToCustomerNo></SellToCustomerNo>
<No></No>
<BillToName></BillToName>
<BillToAddress></BillToAddress>
<BillToCity></BillToCity>
<BillToContact></BillToContact>
<BillToCountryRegion />
<BillToPostCode></BillToPostCode>
<Line>
<DocumentType></DocumentType>
<Type></Type>
<ItemNo>ArticleNr.</ItemNo>
<LineNo>10000</LineNo>
<Description></Description>
<UnitOfMeasure></UnitOfMeasure>
<Quantity></Quantity>
<UnitPrice></UnitPrice>
</Line>
</Header>
</Root>

This code works well the XMLport import the file fine.
Only problem is that i dont want to give a Description within the XML i want NAV to fill the Description
that is allready given in the ArticleDatabase.

Does anybody know how i can fix that....
Thanks in advance.

Regards
DigitP

Best Answer

  • DigitPDigitP Member Posts: 38
    Answer ✓
    Fixed it ... Just delete the <Description> TAG and it works.

Answers

  • SowkarthikaSowkarthika Member Posts: 102
    You can write a code to fill Description from ArticleDatabase in the trigger OnBeforeInsertRecord in XMLPort.
  • DigitPDigitP Member Posts: 38
    Hi Sowkarthinka,
    Thnx for the reply.
    How would that code look like ?
    as i mentiond im quit new to NAV and C/AL coding.
  • DigitPDigitP Member Posts: 38
    Answer ✓
    Fixed it ... Just delete the <Description> TAG and it works.
Sign In or Register to comment.