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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

worker type showing in grid view BOTH

(0) ShareShare
ReportReport
Posted on by 131

I am adding contractual employee in Dynamics AX 2012 with worker type CONTRACTUAL as shown in picture below

pastedimage1630746510630v1.png

and after submitting form (keep in mind that i did not select contract dropdown) it shows worker type BOTH in grid view as shown in figure below

pastedimage1630746510631v2.png

and here its method screen shot given below:


pastedimage1630746510632v3.png 

what is the reason behind it and what will be its solution because in database table (HCMWORKER) its showing "Contractual" in field SL_HCMWORKERTYPEID.

thanks in advance

I have the same question (0)
  • Ramit Paul Profile Picture
    22,805 Most Valuable Professional on at

    Hi,

    Worker type both shows only if the employee is employee in one Le and contractor in other le.

    To confirm in your case, please check the employment history form and see if the worker is assigned with employee and contractor both.

  • Laraib Profile Picture
    131 on at

    Hi,

    First of all I would like thank you for answering me. I have checked EMPLOYEMENT HISTORY but it also showing CONTRACTUAL as I have attached screenshot. what should I do to resolve

    thanks in advance

    contractual employee selecting worker type both

  • Suggested answer
    Laraib Profile Picture
    131 on at

    I have resolve this issue by adding following line of code in a method which is showing data on grid view. picture of code is given below:-

    pastedimage1630929052536v1.png

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 660

#2
André Arnaud de Calavon Profile Picture

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

#3
Subra Profile Picture

Subra 489

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans