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 NAV (Archived)

Add custom field from custom table to sales invoice report

(0) ShareShare
ReportReport
Posted on by

Hello everyone,

i want to find out how i can add a custom field from a custom table in my microsoft navision database to my sales invoice report. Can i do this via microsoft word customization? or what do i need. I have a table which stores a transaction code against the invoice id.i want this transaction code to be displayed on the invoice. Thanks

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Amol Salvi Profile Picture
    18,698 on at

    You need to write a piece of code using invoice id

    Customtable.setrange(invoicid,"No.")

    If customtable.findfirst then

     Transationcode:=customtable.tansactioncode

  • Community Member Profile Picture
    on at

    Thanks Amol. I have the demo license. where can i place this piece of code? in a custom report?

  • Suggested answer
    Amol Salvi Profile Picture
    18,698 on at

    You need to write this code on onafterfgetrecord trigger of report

  • Tina Menezes Profile Picture
    2,582 on at

    Hi

    You can code using the solution provided by Amol. Alternatively if you do not want to use coding, you can add your custom table as a data item in your report below your main data item. You just need to select field 'transaction code' from your custom table n bring it below your custom data item in the report by going to field menu. Then go to the properties of your custom table and in Dataitemlink property set the relation between your tables using the unique field. Now select your custom field and put it on your report.

  • Verified answer
    Tina Menezes Profile Picture
    2,582 on at

    Hi,

    Also You need the developer license to do this customization. With the demo license it is not possible as there is very limited access to development environment.You need to procure the NAV developer license.

  • Community Member Profile Picture
    on at

    Hi Tina, thanks for your responses, How can i obtain the developer license? Also how much does it.cost? Thanks

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 NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans