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

XDS methods Refresh frequency

(0) ShareShare
ReportReport
Posted on by

Hi all,

When using eXtensible Data Security, sometimes a temporary table is used with an XDS method. In my case, I want to filter the purchase orders based on users who are in a role. For example:

The user who has assigned the role named "XXXX" can only see the purchase orders created by him or by the other users that have assigned the "XXXX" role(and this with all the roles). For that we have a temporaly table where we save the users names than are going to be filtered in the purchase orders, inserting then in a table methos named "XDS". And the return of than table is "return RefreshFrequency::PerInvocation;".(We decided not to use a comma separated range because it was too long).

The problem is that when we try to create a new Purchase Order, Ax gets hangs.


One solution could be putting the refreshFrequency "PerSession", but the same user can access diferent companies, so we can´t do it, because it is going to be filtered with the values of the first company.

Does anyone know if I could enforce a rebuild even if the user has not logged out?
I have read about flushXDSMyConstructs and I'm going to try it, but y don´t where I have to call the method...

If anyone could help me... It will be great!! Thanks everbody!

*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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans