Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

SmartList based on view not working when user logged in through Wed Client

(0) ShareShare
ReportReport
Posted on by

I had a view that would restrict a users visibility of records based on their login

CREATE VIEW [dbo].[MGRTIMEVIEW] AS

SELECT
a.EMPLOYID as 'Employee ID',
a.FRSTNAME as 'First Name',
a.LASTNAME as 'Last Name',
b.YEAR1 as 'Year',
b.PERIODID as 'Pay Period',
b.TRXDATE as 'Date',
b.PAYCODE as 'Pay Code',
b.UNTSTOPY as 'Hours',
'In Process' as 'Status'
FROM UPR00100 a JOIN UPR10501 b on a.EMPLOYID = b.EMPLOYID
WHERE a.SUPERVISORCODE_I = (SELECT EMPLOYID FROM UPR00100 WHERE USERID = SYSTEM_USER)

It worked fine until the user logged in through the web client.  I am guessing that SYSTEM_USER is picking up the id of the account running the web client rather than the actual user and am trying to find a solution

*This post is locked for comments

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 >

Featured topics

Product updates

Dynamics 365 release plans