Notifications
Announcements
No record found.
Hi.
I have 3 related tables: InventJournalTable, InventJournalTrans, INVENTDIM; I wish to restrict the data for the InventJournalTable.INVENTSITEID and INVENTDIM.INVENTSITEID field by a value. How could I apply it in the XDS, any ideas that could help me? It is necessary to add the relations in the QUERY?
This restriction is to avoid Insert, delete or update.
Hi,
We need define the range in the XDS query to filter the records,
Below link might be useful for you.
anithasantosh.wordpress.com/.../
Also refer the AOT query 'RetailXDSWorker' in AOT for your reference.
Hi Jimmy,
If only to avoid Insert, delete or update by some fields, you could extend the validateWrite/Delete method to add your logic simply
For doing this you can override the method ValidateField or ValidateFieldValue to restrict update and insert and method ValidateDelete to restrict delete
You can use the good link examples or tutorials for eXtensible Data Security (XDS) in Dynamics 365 and Implementing Role-based Extensible Data Security (XDS) policies in Microsoft Dynamics AX 2012
I wrote a blog and shared an example with almost the same scenario. In my case, I showed an option how to restrict warehouses and related sites.
Extensible Data Security examples - Secure by warehouse (dynamicspedia.com)
The objects are available as a download for free.
I can add two comma separated values in context string to refer to two policies per connecttstring ?
what is the retailxdsworker politics?
Thank you.
A comma separated list is not supported. The context string should exactly match as one value.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 660 Most Valuable Professional
André Arnaud de Cal... 549 Super User 2025 Season 2
Sohaib Cheema 307 User Group Leader