web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
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

I have the same question (0)

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Dan Liebl Profile Picture

Dan Liebl 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans