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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Apply XDS to related tables

(0) ShareShare
ReportReport
Posted on by 70

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.

2630.pastedimage1624408555224v1.png

I have the same question (0)
  • AnithaEswaran Profile Picture
    2,032 on at

    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.

  • WillWU Profile Picture
    22,361 on at

    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

  • Suggested answer
    Hossein.K Profile Picture
    6,648 on at

    Hi,

    For doing this you can override the method ValidateField or ValidateFieldValue to restrict update and insert and method ValidateDelete to restrict delete

  • Suggested answer
    Hossein.K Profile Picture
    6,648 on at
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    300,911 Super User 2025 Season 2 on at

    Hi Jimmy,

    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.

  • JimmyP Profile Picture
    70 on at

    I can add two comma separated values in context string to refer to two policies per connecttstring ?

    pastedimage1624475358941v1.png

    what is the retailxdsworker politics?

    Thank you.

  • André Arnaud de Calavon Profile Picture
    300,911 Super User 2025 Season 2 on at

    Hi Jimmy,

    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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 549 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 307 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans