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, ...
Answered

How to get description from payrollearningcode table on the form

(0) ShareShare
ReportReport
Posted on by 15

Hi,

I'm getting stuck at description of PayrollEarningCode.Description. Based on below code, I'm getting recid of the table but unable to get description.

earncode = PayrollWorkerPositionEarningCode::findByPosition(hcmPosition.RecId);
select payrollEarningCode where payrollEarningCode.RecId == earncode.RecId;
jmgTmpPayExport.DXCEarnCodeStr = payrollEarningCode.Description;

I tried to find by payrollearning::findByearningcode(earncode.earningcode/recid).description; but it didn't work.

Is there anyone who can assist on it?

Thanks,

I have the same question (0)
  • Verified answer
    nmaenpaa Profile Picture
    101,172 Moderator on at

    Did you look at the relations of these tables? I don't have a system at hand so I can't check but I'm pretty sure you should be able to find the information by looking at the relations.

    PayrollWorkerPositionEarningCode.RecId is definetely not related to PayrollEarningCode.RecId. RecId is always unique identifier of a record in a table, it's never pointing to other tables.

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 March 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 657

#2
André Arnaud de Calavon Profile Picture

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

#3
Martin Dráb Profile Picture

Martin Dráb 190 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans