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)

Adding fields from Another Table

(0) ShareShare
ReportReport
Posted on by

Hello, On the item Bin Contents I've created two new fields, Sell-to Customer Name and Item Description. I'm trying to retreive these from the Item Card. 

My assumption was 


recItem.GET(recItem."No.");
"Sell-to Customer Name" := recItem."Sell-to Customer Name";

Would work but it doesn't? What should I change 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mohana Yadav Profile Picture
    61,186 Super User 2026 Season 1 on at

    do you have Sell-to Customer Name field in Item table?

    recItem.GET(<use item field from Bin Content record>);

  • Suggested answer
    Mohana Yadav Profile Picture
    61,186 Super User 2026 Season 1 on at

    you can also create flow fields in Bin Contents table

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

    As Mohana suggested you need to have those field on the source table from there you can show the values on target table

    Check the fields and relationship between two tables.

  • Community Member Profile Picture
    on at

    Hi Thank you, I've attempted to create a flowfield

    91.PNG

    However now when I go into the Item Bin Contents Page I get this error

    91.PNG

  • Suggested answer
    Binesh Profile Picture
    7,887 on at

    You have to write something like:

    IF recItem.GET("Item No.") THEN BEGIN

      "Item Description" := recItem.Description;

      "Sell-to Customer Name" := recItem."Sell-to Customer Name";

    END;

    Note: Here "Item No" is a Bin Contents Filed

  • Community Member Profile Picture
    on at

    Thank you again. I Have the Sell to Customer No and item Description populating However I realise I need to get the Sell-to Customer Name from the Customer table. I Attempted to create a flowfield for this

    Lookup(Customer.Name WHERE (Name=FIELD(Sell-to Customer Name)))

    And wrote

    IF recCustomer.GET("Item No.") THEN BEGIN

     "Sell-to Customer Name" := recCustomer.Name;

    END;

    But It errors and the page doesn't load, what should I alter?

  • Suggested answer
    Mohana Yadav Profile Picture
    61,186 Super User 2026 Season 1 on at

    You need to read some help regarding using GET function.

    how to you get customer record with Item No?

    recCustomer.GET("Item No.")

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans