Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

Link ProjTransPosting RESOURCE_ to Employee name

(0) ShareShare
ReportReport
Posted on by 2
Hi everyone,
 
I try to find employee names related to who wrote hours (ProjTransPosting).
I thought it was as simple as this, but in our case we don't get the correct names:

SELECT DISTINCT
    RESOURCE_
    ,PT.ProjId
    ,PT.CategoryId
    ,CONCAT_WS(' ',DPN.FirstName, DPN.LastNamePrefix, DPN.LastName) AS [Naam]
FROM [ODS].[D365FO_DATALAKE_PROJTRANSPOSTING] PT
LEFT JOIN ODS.D365FO_DATALAKE_HCMWORKER HW
    ON HW.RECID = PT.RESOURCE_
LEFT JOIN ODS.D365FO_DATALAKE_DIRPERSONNAME DPN --incorrect names
    ON DPN.Person = HW.Person
LEFT JOIN ODS.D365FO_DATALAKE_DIRPARTYTABLE DP --this join doesn't work either
    ON DP.RECID = PT.RESOURCE_
 
The only other field in ProjTransPosting table that seems to be related to employees is EmplItemID, but I don't see any value there that corresponds even slightly with what I find in HcmWorker or DirPerson. We do not have a field called 'Worker' or anything similar.
 
 
What I don't understand is that the employee names I am looking for are visible in 'Rol-id' column, which doesn't really sound like an employee field to me either.
I am talking here about form 'ProjTransEmpl' or entry point 'ProjEmplTrans_Resource_name'.
 
 
What is actually the technical name from the table where I can find these 'Rol-id' values and how can I connect this to the ProjTransPosting table?
Any suggestions are very welcome :)
 
Kind regards,
Igor
  • Verified answer
    GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    D365FO: Link ProjTransPosting RESOURCE_ to Employee name
    Hi,
     
    You need to make use of the ResourceView to get the worker's name. Like below.
    ProjTransPosition.Resource == ResourceView.RecId
    HcmWorker.RecId == ResourceView.Worker
    From there you can get worker name from DirPerson and DirPartyTable.
     
    Thanks,
    Girish S.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,971 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,846 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans