OnMissingPermission Property

Specifies what happens to the subscriber function call when the Microsoft Dynamics NAV user account that is running the current session does not have permission to the codeunit that contains the subscriber function. The permissions are defined by the permission sets on the user account.

Applies to

  • C/AL functions in codeunits.

    This property is only available when the Event Property is set to Subscriber.

Property Value

Value Description

Error

An error is thrown and code execution will stop. This is the default value.

Skip

The subscriber function call is ignored and the execution continues the next subscriber.

Remarks

Before the permissions of the user account are evaluated, the user's license is evaluated to make sure that it includes the codeunit. If the license is not valid for the codeunit, the call to the subscriber is stopped and this property is irrelevant.

For more information about events, see Events in Microsoft Dynamics NAV.

See Also

Concepts

Publishing Events
Raising Events
Subscribing to Events
C/AL Function Statements