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 :
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 } }

I have the same question (0)
  • Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    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.

  • Fawad Ahmad Profile Picture
    61 on at

    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
    237,965 Most Valuable Professional on at

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

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 > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 45 Most Valuable Professional

#2
iampranjal Profile Picture

iampranjal 36

#3
Satyam Prakash Profile Picture

Satyam Prakash 31

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans