Export (0) Print
Expand All

Setting SysEntryPointAttribute for Services [AX 2012]

Updated: January 25, 2012

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.

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

Setting

Description

[SysEntryPointAttribute(true)]

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

[SysEntryPointAttribute(false)]

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

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);
}

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft