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 :
Small and medium business | Business Central, N...
Suggested Answer

How to populate the data of a different table in another table in Business Central

(0) ShareShare
ReportReport
Posted on by 2,100

Hi all,

I am struggling with a requirement. Client want to store the information of the date of last item sold and added on a particular location.

Requirement : Have to create 2 custom fields on Items table for example let's say Last Sold and Last Received where Last Received field shall return the date of the last PO received date for this item in the location and for the Last sold it shall return the date of the last SO received date for this item in the location.

I tried working with the Flowfield but failed as there are two tables involved Item and Location whereas in flowfield there are limitation and we can't work with 2 tables at a time.

Also, I tried working with OnValidate trigger but unable to find a realtion between the Items and the Location codes. It would be really helpful if anyone can provide a sample code snippet.

Can anyone please suggest a way out?

I have the same question (0)
  • Suggested answer
    JAngle Profile Picture
    133 on at

    Is the data you need not in the Item Ledger Entry? All items and the locations where they were shipped or receipted? You have the "Location Filter" as a flowfilter field so anything you produce should use that. I would just copy the "Inventory" field and alter the calcformula according to the logic you have mentioned. Will need to use a sorting to get the correct date.

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,468

#2
YUN ZHU Profile Picture

YUN ZHU 923 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 607

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans