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)

Get all responsible person informations

(0) ShareShare
ReportReport
Posted on by 109

I'm working on the sales invoice report and one of my tasks is to display the name and the phone no. of the responsible person in the header. If I use the data source "Sales Invoice Header"."Responsible Person" the code will be displayed (for e.g. AB for Antonio Bryant). Can someone explain to me how I can get the same informations for the resp. person like the informations for the "SalesPurchPerson"?

*This post is locked for comments

I have the same question (0)
  • Hannes Holst Profile Picture
    5,767 on at
    RE: Get all responsible person informations

    What is the TableRelation of the field "Responsible Person"?

  • Yupp90 Profile Picture
    109 on at
    RE: Get all responsible person informations

    It's Salesperson/Purchaser

  • Hannes Holst Profile Picture
    5,767 on at
    RE: Get all responsible person informations

    Create a global variable on the record "Salesperson/Purchaser".

    Add the desired fields of that table to the dataset of the report. You can select the new global variable as DataSource.

    In the OnAfterGetRecord-trigger of the "Sales Invoice Header"-datasource add the following:

    IF NOT SalesPurchPerson.GET("Sales Invoice Header"."Responsible Person") THEN
      CLEAR(SalesPurchPerson);


    Add the new fields to the report layout.

  • Suggested answer
    Suresh Kulla Profile Picture
    50,237 Super User 2025 Season 2 on at
    RE: Get all responsible person informations

    You need retrieve the table holding the  Responsible Person Informatoin and Use that as the source expression. Check the code how to retrieve the Responsible Person just like SalesPerson, Payment Terms, Shipment Method.

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

#1
Alexander Ermakov Profile Picture

Alexander Ermakov 2

#3
RK-25090803-0 Profile Picture

RK-25090803-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans