Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

How to show Department Name, EmpID, Description.

(0) ShareShare
ReportReport
Posted on by 61

static void Fawadd(Args _args) { HcmWorker woker; DirpartyTable DirDepart; HcmPositionDetail pstDetail; HcmPositionWorkerAssignment Assign; HcmPositionDuration pst; DirPartyTable party1; // //pstDetail.VALIDFROM, //pstDetail.VALIDTO, //Assign.VALIDFROM, //Assign.VALIDTO, //party.NAMEALIAS as EmpName, //DirDepart.NAME as DeptName while select * from woker join DirDepart where woker.Person==party1.RecId join Assign where Assign.Worker == woker.RecId join pstDetail where Assign.Position == pstDetail.Position join pst where pst.Position == pstDetail.Position join DirDepart where DirDepart.RecId == pstDetail.Department && woker.PersonnelNumber == '00038' { //--DirDepart.NAME='IT' //--party.NAMEALIAS LIKE '%Muhammad Imran%' info(pstDetail.Description); //return DirDepart.Name } }

  • Martin Dráb Profile Picture
    234,193 Most Valuable Professional on at
    RE: How to show Department Name, EmpID, Description.

    Can you please follow what I said in my previous reply?

  • Fawad Ahmad Profile Picture
    61 on at
    RE: How to show Department Name, EmpID, Description.

    thanks for your kind information. I want to show my all records on the bases of specific EmployeeID. Now I find that method for this problem solution.

    utcDateTime validTo = DateTimeUtil::maxValue();

    utcDateTime validFrom = DateTimeUtil::minValue();

  • Martin Dráb Profile Picture
    234,193 Most Valuable Professional on at
    RE: How to show Department Name, EmpID, Description.

    Please tell us which product it's about, so I can move it to the right forum. It surely is X++, therefore it's about either Dynamics AX or D365FO.

    Then please post your code again, this time with line breaks and indentation. Utilize Insert > Code in the rich formatting view.

    And then explain your question, because you just pasted some code without any explanation of your problem.

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 181 Super User 2025 Season 1

#2
Siv Sagar Profile Picture

Siv Sagar 149 Super User 2025 Season 1

#3
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 124 Super User 2025 Season 1

Product updates

Dynamics 365 release plans