web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Customer Name

(0) ShareShare
ReportReport
Posted on by 3,099

Hi

   I am creating Sales Invoice Report Format. With Customer No i want to display Customer Name also.

Thanks

*This post is locked for comments

I have the same question (0)
  • javedakhtar Profile Picture
    1,751 on at
    RE: Customer Name

    define global variable CustName as text 50

    define global variable RecCust as record

    if RecCust.Get(Customer No) then

     CustName := RecCust.Name;

  • mmv Profile Picture
    11,471 on at
    RE: Customer Name

    Hi,

    You may refer the Standard Sales Invoice report (Report ID : 206), the below code is available in the "Sales Invoice Header" - OnAfterGetRecord trigger:

    IF NOT Cust.GET("Bill-to Customer No.") THEN

     CLEAR(Cust);

    the above Cust.Name can be used in the DataSet and eventually to print on the report.

  • Suggested answer
    RockwithNav Profile Picture
    8,370 Super User 2025 Season 2 on at
    RE: Customer Name

    Move ahed with Javeds recommendation, it will solve your case.

  • Suggested answer
    Tharanga Chandrasekara Profile Picture
    23,118 on at
    RE: Customer Name

    Please share your code on what you have tried so far. We will be able to help you to resolve the issue you have.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
Saurav.Dhyani Profile Picture

Saurav.Dhyani 2 Super User 2025 Season 2

#2
RK-25090803-0 Profile Picture

RK-25090803-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans