Hi @CU10121822-0 ,
Yes, XDS (Extensible Data Security) is used to implement row-level data security in D365FO. When an XDS policy is active, it restricts the records that a user can access based on the policy query and security context.
If there is a specific requirement to process records that are normally restricted by the XDS policy, XDS can be bypassed from X++ using the unchecked statement. For example:
unchecked
{
While Select myTable
{
//Process all requried records
}
}
This allows the code to access records without the normal XDS restrictions for that operation.
You can also refer to standard application examples where the unchecked statement or XDSServices class is used to bypass XDS restrictions.
However, this should be used carefully, as it bypasses the row-level data security provided by XDS and should only be done when there is a valid business or technical requirement.