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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Where can I find the information related to the Primary positions in the system tables?

(0) ShareShare
ReportReport
Posted on by 15

A worker can have several positions but only one can be primary. Where do I find that flagging in the system tables. I found onw called HCMWorkerPrimary position. but It does not contain all the flagged positions.

ExporttodataLake Financial Management  TableBrowser  

I have the same question (0)
  • Suggested answer
    GirishS Profile Picture
    27,825 Moderator on at
    RE: Where can I find the information related to the Primary positions in the system tables?

    Hi David Molina,

    There is no Flag in d365 to identify the worker primary position.

    If there exist a record in HcmWokerPrimaryPosition table then that position is primary position for that worker.

    Suppose there are 2 positions assigned to the worker 0001(Primary position) and 0002. So 0001 will be present in the HcmWorkerPrimaryPosition table(It wont save position recid, You have RecId of HcmPositionWorkerAssignment table).

    Thanks,

    Girish S.

  • Suggested answer
    Mohit Rampal Profile Picture
    12,563 Moderator on at
    RE: Where can I find the information related to the Primary positions in the system tables?

    Hi David,

    Please check this thread, it has the answer you are looking for.

    community.dynamics.com/.../how-to-get-the-record-that-has-a-primary-position-set-to-yes-in-hcmworkerpostions-form-d365fo

    IsPrimary is not a table field or method but it is a datasource method in HcmWorkerPositions Form under HcmPositionWorkerAssignment Datasource.

    As mentioned in the thread, you can find a primary record of worker from HcmWorkerPrimaryPositionTable using ValidTimeState in code (ValidFrom and ValidTo).

  • davidmvg Profile Picture
    15 on at
    RE: in D365 F&O, Where can I find the information related to the Primary positions in the system tables?

    Hi Girish, Thanks for the quick reply. How ever I found several cases which the Worker has two positions and one "Flagged" as primary in the front-end, but when I search for that worker name on the HcmWorkerPrimaryPosition he or she do not appear on the list at all. Do you know if there is a reason for that?

  • Verified answer
    GirishS Profile Picture
    27,825 Moderator on at
    RE: in D365 F&O, Where can I find the information related to the Primary positions in the system tables?

    I am not sure - It should be present in the HcmWorkerPrimaryPosition table.

    On the worker primary position form - You will have Primary position flag - This is the display method - You need to debug the code and see how the flagged is marked for the particular employee from HcmWorkerPrimaryPosition table.

    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

Responsible AI policies

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

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
André Arnaud de Calavon Profile Picture

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

#2
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 569

#3
Martin Dráb Profile Picture

Martin Dráb 551 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans