Skip to main content

Notifications

Community site session details

Community site session details

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

Running Payroll "benefit" history via smartlist builder

(1) ShareShare
ReportReport
Posted on by 10

I need to run a history of benefits posted in payroll for health insurance. This is filtered by department. The kicker is that the department is closed and literally 50 employees are now in new departments. When I run a smartlist for the benefits, these employees who were in the department at the time are not showing. I am using Smartlist builder

How do I include and "as of date" to return all people who were in that specific department as of the specific check date? 

Thanks for your help! 

Categories:
  • Suggested answer
    Andrea Melroe Profile Picture
    3,437 on at
    RE: Running Payroll "benefit" history via smartlist builder

    Hi karlcgray,

     

    While I can’t speak to Smartlist Builder functionality, I can tell you that the information you’re looking for can be pulled from the UPR30300 table.

     

    Here’s an example of a view you could create in SQL (which can be used to create a smart list in GP):

     

    CREATE VIEW [dbo].[Payroll_Benefit_History]

    AS

    SELECT

    EMPLOYID AS EMPLOYEE,

    DEPRTMNT AS DEPARTMENT,

    PAYROLCD AS BENEFIT,

    UPRTRXAM AS BENEFIT_AMOUNT,

    CHEKNMBR AS CHECK_NUMBER,

    AUCTRLCD AS AUDITTRAILCODE,

    CHEKDATE AS CHECK_DATE

    FROM UPR30300 WHERE PYRLRTYP = 3

    GO

    grant select on [Payroll_Benefit_History] TO DYNGRP

     

    This blog talks about how to create a smart list based on a view in Smartlist Designer:

    Microsoft Dynamics GP SQL Views for SmartList Designer to Enhance Reporting - Microsoft Dynamics GP Community

    I’m sure it’s possible to do something similar in Smartlist Builder as well. Others who use builder will likely have more advice for you there.

    Hope this helps!

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 601 Most Valuable Professional

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 416

#3
Adis Profile Picture

Adis 384 Super User 2025 Season 1

Product updates

Dynamics 365 release plans