Skip to main content

Notifications

Announcements

No record found.

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  

  • Verified answer
    GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 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.

  • davidmvg Profile Picture
    davidmvg 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?

  • Suggested answer
    Mohit Rampal Profile Picture
    Mohit Rampal 12,554 Super User 2024 Season 1 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).

  • Suggested answer
    GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 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.

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…

Vahid Ghafarpour – Community Spotlight

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

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,234 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,994 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans