Setting SysEntryPointAttribute for Services


This content is archived and is not being updated. For the latest documentation, see Microsoft Dynamics 365 product documentation. For the latest release plans, see Dynamics 365 and Microsoft Power Platform release plans.

Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

The SysEntryPointAttribute indicates what authorization checks are performed for a method that is called on the server. This attribute must be set for all service operations. For more information about how to set attributes on X++ methods, see Syntax for Attribute Classes.

The AIF Document Service Wizard automatically decorates service operations with [SysEntryPointAttribute(true)]. When you develop custom services you must use the SysEntryPointAttribute to decorate each service operation.

SysEntryPointAttribute Settings

The following table describes the possible values for the constructor of the SysEntryPointAttribute class.




Indicates authorization checks are performed on the calling user for all tables accessed by the method.


Indicates authorization checks are not performed on any tables accessed by the method.

Example Document Service

The following example shows the SysEntryPointAttribute set to true on the create method for the CustCustomerService class.

[AifDocumentCreateAttribute, SysEntryPointAttribute(true)]
public AifEntityKeyList create(CustCustomer _custCustomer)
    return this.createList(_custCustomer);

See also

Attributes on X++ Types and Methods

AOSAuthorization Property on Tables