Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Validates whether a role or all roles comply with one or more of the specified SOD rules.
Syntax
server public static boolean validateRoles([RefRecId _roleId, RefRecId _ruleId])
Run On
Server
Parameters
- _roleId
Type: RefRecId Extended Data Type
The ID of the role to validate; optional.
- _ruleId
Type: RefRecId Extended Data Type
The ID of the SOD rule to validate; optional.
Return Value
Type: boolean
true if the role conforms; otherwise, false.
Remarks
If the _ruleId parameter is omitted, all the rules are validated. The function writes an error to the Infolog for every violation that is encountered. Note that this method is invoked by Microsoft Dynamics AX Application Object Server (AOS) validation routines and must be executed after the modification has been entered in the database.