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

Notifications

Announcements

No record found.

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
    60,993 Super User 2025 Season 2 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
    60,993 Super User 2025 Season 2 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,885 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
    60,993 Super User 2025 Season 2 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

Responsible AI policies

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

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans