Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

Query of Income GL Transactions and customers

Posted on by Microsoft Employee

I would like to create a query in the development environment which will show of GL Transactions for all Income accounts and the related customer name for each transaction.  Can somebody advise which tables I would need to link?

*This post is locked for comments

  • Suggested answer
    Yogesh Kulkarni_ Profile Picture
    Yogesh Kulkarni_ 1,762 on at
    RE: Query of Income GL Transactions and customers

    You can check Source Type as Customer and then as suggested by other members as well consider Source No. to fetch Name from Customer (ID - 18) Table.

    Better way, you can just create a new FlowField and provide CalcFormula as:

    Lookup(Customer.Name WHERE (No.=FIELD(Source No.)));

      

    -Yogesh Kulkarni
    Please verify, if you find answer helpful.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Query of Income GL Transactions and customers

    Thanks Amol, I needed the info to use Source No as the link to the Customer table.  Still new to this system and learning new things everyday.  Cheers,  Sergei

  • Verified answer
    Alexander Ermakov Profile Picture
    Alexander Ermakov 28,094 on at
    RE: Query of Income GL Transactions and customers

    As Amol correctly advised, G/L Entry table by default contains Source No. field which would represent customer code in the sales transaction. If you would like to get customer name, you can either add a new field to G/L Entry table and make it a flowfield by Source No. filed to Customer table, or you can write your own query by linking those tables (17 and 21).

  • Verified answer
    Maneesha Profile Picture
    Maneesha 5,889 on at
    RE: Query of Income GL Transactions and customers

    SergeiJ  ,

    Required Table ID as follows

    Table ID : 17

    Table ID: 21

    Table ID: 5802

  • Verified answer
    Amol Salvi Profile Picture
    Amol Salvi 18,694 on at
    RE: Query of Income GL Transactions and customers

    You can use G/L Entry table for the same and use Source no for displaying customer name

    Or

    You can use Customer Ledger Entry table (Table No 21)

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans