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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Legal Entity Name, Legal Entity Id, Data Area Id blank when Employee Leaves

(1) ShareShare
ReportReport
Posted on by 2

HI,

I have Custom Entity called ABCWorker (Not sure of the underlining tables that is used to build this ), when I run the below SQL 

SELECT
scw.PERSONNELNUMBER
,scw.LEGALENTITY
,scw.LEGALENTITYID
,scw.LEGALENTITYNAME

FROM dbo.ABCWorker scw

The Fields LEGALENTITY, LEGALENTITYID and LEGALENTITYNAME are all Blank for Employees that have been Terminated.

Does anyone know if there are tables that holds this information for when an Employee Leaves the company? As this is causing a nightmare for reporting.

Thanks

I have the same question (0)
  • Suggested answer
    Parag Chapre Profile Picture
    12,254 Most Valuable Professional on at

    Hi there,

    You should use hcmworker and HCMemployment tables which give you all workers with their employment dates and company information.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 566 Super User 2026 Season 1

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 504 Super User 2026 Season 1

#3
Subra Profile Picture

Subra 429

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans