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 AX (Archived)

View from AOT query with currenUser() as range

(0) ShareShare
ReportReport
Posted on by

Hi, I've created an AOT query in AX 2012R3 with a range where the userId is set to (currentuser()).

Let's say I am logged in as User1. This works fine. I get all the records from the table that where created by the User1. All other user can see their own records as expected when using this query.

However, when I use this query as a datasource in a view I need to synchronise the view with the database in order to see the records of User1. At the same time all other users can see the User1 records as the view is synchronised with currentUser = User1. Please advise how I can make sure the view is only showing the records for the currentUser.

*This post is locked for comments

I have the same question (0)
  • István Orosz Profile Picture
    2,137 on at

    Hi,

    Would you add some more details please about your query?

  • Verified answer
    André Arnaud de Calavon Profile Picture
    305,465 Super User 2026 Season 1 on at

    Hi LouisH,

    This is as far as I have experienced not possible. The synchronization is indeed replacing it with the actual user. You can actually use eXtensible Data Security to constrain the records based on the user (then remove the current range in the view). Another option is to apply a filter on a form or report during runtime.

  • Community Member Profile Picture
    on at

    Hi Andre,

    Thanks for the quick reply. Good to read that your findings are like mine.

    Kind regards

    Louis

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 April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 21

#2
dekion Profile Picture

dekion 4

#2
Virginia99 Profile Picture

Virginia99 4

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans