ServiceEnabled Attribute

Version: Available or changed with runtime version 2.0.

Exposes a method to the service.

Applies To

  • Method

Syntax

[ServiceEnabled]

Example

    [ServiceEnabled]
    procedure Post(var ActionContext: WebServiceActionContext)
    var
        SalesHeader: Record "Sales Header";
        SalesInvoiceHeader: Record "Sales Invoice Header";
    begin
        GetDraftInvoice(SalesHeader);
        PostInvoice(SalesHeader, SalesInvoiceHeader);
        SetActionResponse(ActionContext, SalesInvoiceHeader.Id);
    end;

See Also

Get Started with AL
Developing Extensions