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 :
Finance | Project Operations, Human Resources, ...
Answered

Help specifying data source relationship

(1) ShareShare
ReportReport
Posted on by 26
Hello,
I don't seem to be able to specify a data source relationship correctly so that my extended data entity project builds.
I'm getting error:
      .../DataSources/HcmWorker/DataSources/HcmWorkerEntity/Relations/QueryDataSourceRelation1/JoinRelationName]:Relation 'WorkerEntity' does not exist.    

I have an existing data entity BCPWorkerUpdatesEntity with one of the data sources the HcmWorker table, I want to expand the entity to include the identityemail column which I can find in the HcmWorkerEntity entity.
I couldn't see a relationship between the two. Even so when I added HcmWorkerEntity to the data sources and left the Use Relations property = Yes it didn't complain. However,r when I went to export records in F&O it was incorrect and way too many records were exported.

So I think I need to set Use Relations=No and specify manually how to link the two entities. I think this would be on PersonnelNumber but am not getting it to compile.

Here is what I am trying:



This is my first attempt at extending a data entity and adding a data source. Any advice gratefully received.

Thanks
Categories:
I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at
    The entity already includes HcmWorker, DirPersonBaseEntity, HcmWorkerTitle and HcmWorkerRelationTypeView. Adding HcmWorkerEntity would mean loading all these things again, which sounds like a waste of resources to me.
     
    Instead, look at HcmWorkerEntity to see where IdentityEmail field comes from and do the same in your entity extension. You'll need to add DirPersonUser and UserInfo data sources.
  • flangepiece Profile Picture
    26 on at
    Thank you Martin for your advice, it led me to the right solution and I learnt some things along the way, including how to set a range. 

    I did get an error with unmatched data types initially and found looking at the data entity and querying data in sql server management studio helped solve it.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 503 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 434 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans